Support

Home Forums Event Espresso Premium custom functions

custom functions

Posted: June 26, 2012 at 8:16 am

Viewing 2 reply threads


Emanuel Schütt

June 26, 2012 at 8:16 am

Noticing that the currency is displayed Currency+Amount as standard, and “hard coded” in several places.

It’s not a problem to change but is there someway to save all my custom functions safe and sound from future updates?


Josh

  • Support Staff

June 26, 2012 at 8:44 am

Hi Emanuel,
If it’s in a template, these can be copied over to /wp-content/uploads/espresso/templates. There is more information in this guide: https://eventespresso.com/wiki/put-custom-templates/
Note that some templates need to be copied over in pairs. For example, if you make a change to event_list_display.php, you’ll need to copy over it’s counterpart event_list.php. Also please note that if we need to make a change to a template in version of Event Espresso, you’ll need to copy this change into your custom template to stay current with the plugin.

We recommend using Diffmerge to help merge changes into custom templates.

If it’s in a pluggable function, the modified function can be copied over to the custom_functions.php file that is included with the custom files add-on. See the readme.txt file in the custom files add-on for more info.
pluggable functions start with:
if (!function_exists('function_name')) {


Emanuel Schütt

June 26, 2012 at 9:17 am

Ok, thank you.

Viewing 2 reply threads

The support post ‘custom functions’ 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