Skip to content
bearded-avenger edited this page Dec 10, 2014 · 8 revisions

Load More Ideas
Filter the button label that says "Load more ideas".

add_filter('idea_factory_loadmore_label','my_readmore_label');
function my_readmore_label(){
    return 'Load more goats';
}

Loading ideas...
Filter the button text that says "Loading Ideas...".

add_filter('idea_factory_loadmore_loading','my_readmore_loading');
function my_readmore_loading(){
    return 'Loading Goats...';
}

Default Message
Filter the default intro message.

add_filter('idea_factory_default_message','my_default_message');
function my_default_message(){
    return 'My new default message.';
}

No Ideas
Filter the message shown when no ideas.

add_filter('idea_factory_no_ideas','my_noideas_message');
function my_noideas_message(){
    return 'No goats found!';
}

Submit Idea
Filter the button label to submit a new idea.

add_filter('idea_factory_submit_idea_label','my_submit_idea_label');
function my_submit_idea_label(){
    return 'Submit a Goat';
}

Submit
Filter the button label in the modal form used to submit a new idea.

add_filter('idea_factory_submit_label','my_submit_label');
function my_submit_label(){
    return 'Send Goat';
}

Form Title
Filter the title in the modal that says "Submit idea."

add_filter('idea_factory_form_title','my_form_title');
function my_form_title(){
    return 'New Goat Title';
}

Form Description
Filter the form description label.

add_filter('idea_factory_form_description','my_form_description');
function my_form_description(){
    return 'Description of goat';
}

Allowed HTML
Filter the set of allowed HTML tags. This filter is used in the form submission and on the front end just for shits and giggles. Can't ever be to safe right?
apply_filters('idea_factory_allowed_html', $allowed_html );


Post Type Args
apply_filters('idea_factory_type_args');

Clone this wiki locally