Support

Home Forums Event Espresso Premium custom functions

custom functions

Posted: June 26, 2012 at 8:16 am


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: http://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.

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Emanuel Schütt 7 years, 9 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!