Support

Home Forums Event Espresso Premium Promotion Code Submissions – Change the button text

Promotion Code Submissions – Change the button text

Posted: February 3, 2017 at 3:33 am


VetDynamics

February 3, 2017 at 3:33 am

Hi guys,
Tried adjusting the button text, found help here: https://eventespresso.com/wiki/ee4-promotions-add-on/?utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=other_services_tab&utm_content=promotions_addon_link&ap_id=EEspresso

but cannot seem to find where to add this code:

<?php
//* Please do NOT include the opening php tag
//* Change the Submit Promotion code button’s text
add_filter( ‘FHEE__EED_Promotions___add_promotions_form_inputs__ee_promotion_code_submit__default’, ‘my_example_promotions_button_text’ );
function my_example_promotions_button_text( $text ) {
$text = ‘Redeem Coupon Code’;
return $text;
}
view rawpromotions_button_text.php hosted with ❤ by GitHub

can anyone help please?

Thanks.


Tony

  • Support Staff

February 3, 2017 at 3:41 am

Hi there,

You would add that code to either your child themes functions.php file, or preferably a Custom Functions Plugin you create for the site.

The support post ‘Promotion Code Submissions – Change the button text’ 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.

Event Espresso