Hello Actino,
The custom messages shown in the Custom Messages section are dependent on your opt-in settings. Check out this knowledge base article: https://yikesplugins.com/support/knowledge-base/custom-form-messages/. It explains the different messages.
Let me know whether that answers your question.
All the best,
Kevin.
Thread Starter
actino
(@actin)
Hi Kevin
thanks for answering!
I’ve checked the opt-in settings again – but the update-message is still missing.
e.g – its the message “Update email successfully sent. Please….” i like to change, on file: /public/partials/ajax/class.public_ajax.php
But know i found a common SOLUTION:
add_filter( ‘gettext’, function( $translated_text, $text, $domain ) {
if ( ‘%s Update email successfully sent. Please check your inbox for the message.’ === $text ) { return ‘My new text’; }
return $translated_text;
} , 20, 3 );
so it works fine – its ok like this method?!
I’m very sorry – im a newbie in wp-child functionsl…
many thanks – greets
best greetings actino
-
This reply was modified 8 years, 1 month ago by
actino. Reason: found solution
-
This reply was modified 8 years, 1 month ago by
actino.
Hey Actino,
I see what you’re referring to now. We missed this one! This message is currently not editable or filterable. We’ll make sure to at least include a filter in our next update.
Sorry about that.
All the best,
Kevin.
Thread Starter
actino
(@actin)
Hi Kevin – sorry i still changed my last post – but you’re so fast.
i found a solution:
add_filter( ‘gettext’, function( $translated_text, $text, $domain ) {
if ( ‘%s Update email successfully sent. Please check your inbox for the message.’ === $text ) { return ‘My new text’; }
return $translated_text;
} , 20, 3 );
Thread Starter
actino
(@actin)
Hi Kevin – sorry i still changed my last post – but you’re so fast.
i found a solution:
add_filter( ‘gettext’, function( $translated_text, $text, $domain ) {
if ( ‘%s Update email successfully sent. Please check your inbox for the message.’ === $text ) { return ‘My new text’; }
return $translated_text;
} , 20, 3 );
Thank you!
Wow nice! I’ve never actually seen someone use the gettext filter.
I will let you know when we’re able to integrate this translation into the plugin.
Thread Starter
actino
(@actin)
Thank you for updates – I think would be better than a gettext-filter 🙂