Support

Home Forums Event Espresso Premium How to Switch the Default Button Text of a Shortcode Button

How to Switch the Default Button Text of a Shortcode Button

Posted: February 22, 2015 at 7:07 pm


Benjamin Mukasa

February 22, 2015 at 7:07 pm

Registration at: http://www.ttabamiruka.com
WordPress Version 4.1.1
Event Espresso Version 4.6.11.p
Event Espresso – EE Barcode Scanner Version 1.0.0.beta.002
Event Espresso – Social Sharing (EE4.4.4+) Version 1.0.p
Event Espresso – Ticketing (EE4+) Version 1.0.0.beta.012
Recently upgraded Event Espresso

An example would be the shortcode: [INVOICE_RECEIPT_SWITCHER_BUTTON]. It currently displays “Switch to Receipt”. However, my client would like the button to read “View Registration Summary”. What php file would I need to edit to change this? Thanks.


Dean

February 23, 2015 at 4:13 am

Hi,

It would be better to use the language files to “translate” the button’s wording rather than changing PHP files. Please see here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

If you are adamant about changing the file directly, it is /wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php but please note we do NOT support nor advise changing core files directly, and any plugin updates will over write those changes.


Benjamin Mukasa

February 23, 2015 at 3:24 pm

Worked like a charm. Thanks Dean.

The support post ‘How to Switch the Default Button Text of a Shortcode Button’ 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