Site icon Catch Themes

function.php error

I tried to replace "Taxes" with "Service Fee" in one of plugin and added the following code in the end of theme’s function.php file. function my_em_text_rewrites($translation, $orig, $domain) { str_replace(‘Service Fee’,’Taxes’, $translation); return $translation; } add_action ( ‘gettext’, ‘my_em_text_rewrites’, 1, 3 ); But it give me following error: Parse error: syntax error, unexpected ‘$translation’ (T_VARIABLE) in /home/eventslo/public_html/wp-content/themes/catch-flames/functions.php on line 281. Line 281 is return $translation;
Exit mobile version