How to add custom translatable text to Submit Event Form?
-
Hi,
I would like to add custom text to the Submit Event Form. For example some instructions / help text under each field.
I know I could just hardcode the text to the form template, but the site is both in English and in native language. So the custom text should be translatable.
1) How do I add the custom text to the form so it will be also translatable?
2) How and where do add the custom translations so that they won’t get wiped out when updating the plugin?
—-
Bonus: I would also like to make some tweaks to the native language translation.
I found this,
function change_translate_text( $translated_text ) { if ( $translated_text == 'Old Text' ) { $translated_text = 'New Translation'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );
Any idea how do I limit this to only change words in Events manager?
regards
kantti
- The topic ‘How to add custom translatable text to Submit Event Form?’ is closed to new replies.