I already did changes before, just manually replaced all words with event to trip. But maybe anybody can help me with a code that can make it faster
I have added this filter to the functions.php and got whit screen, can anybody give an idea what is wrong?
function my_em_custom_content_title($content){
if( /* Do something here to decide whether to override */ ){
$content .= “Trips”;
}
//Whatever happens, you must return the $content variable, altered or not.
return $content;
}
add_filter(’em_content_page_title’,’my_em_custom_content_title’);
On which pages do you want to change the wording?
Hello, everywhere where I have words Event/Events because my users will create Trip/Trips
I google some information and figured out that I may do that with hook and filter, so now working on how correctly to add this to my php files.
http://wp-events-plugin.com/tutorials/overriding-event-page-content-with-filters/
You’d probably need to use a filter like this in the functions.php file of your theme:
http://pastebin.com/84A4NNXe