Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114 EE4 Edit yellow text box when selecting invoice option for payment | Event Espresso - Staging Server
When you click on the invoice button, the following text comes up ‘You have selected “Invoice” as your method of Payment. I would like to edit the text in the yellow box that comes up under that text ‘After finalizing your registration, you will be transferred to the payment overview where you can download your invoice’. Is this possible?
function replace_invoice_message($content)
{
$content = str_replace('After finalizing your registration, you will be transferred to the payment overview where you can download your invoice.', 'MYNEWPHRASE',$content);
return $content;
}
add_filter('the_content','replace_invoice_message');
The above code can go into your theme’s functions.php file or a custom plugin. Be sure to update “MYNEWPHRASE” to something else.
I tried this on Friday but only just got back to responding now, I added the information above to the functions.php file for the theme in use and the text still comes up unchanged, can you advise?
If that doesn’t work, and it may be more bullet-proof anyway, you can use a function that makes use of the gettext filter instead of the_content filter. This tutorial has some example code that includes a function that uses the gettext filter:
I took you advice and its doing what was requested.
Thanks for the help!
Viewing 4 reply threads
The support post ‘EE4 Edit yellow text box when selecting invoice option for payment’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.