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 Override Price | Event Espresso - Staging Server
I’m trying to override event_espresso_price_dropdown to change them to radio buttons and found it in two places:
pluginsevent-espressoincludesfunctionspricing.php
pluginsespresso-members.1.9member_functions.php
It looks like the member_functions from the Members plugin is the one being used but if I try to override that in uploadsespresso then it does not override it.
Is it possible to override the one in espresso-members?
Thanks,
Andrew
PS > I’m working off a base of 3.1.21 so it’s possible it’s been changed since then. If so, please just let me know. Don’t expect you to help dig into old versions :)
It looks like the event_espresso_price_dropdown function in members isn’t wrapped in a function_exists check, meaning your version in custom_functions.php isn’t going to get run without hitting a duplicate function error. What you may be able to do is something like this:
…where you’re checking for the function and if it exists, running your own version instead.
My other suggestion would be to just hack the espresso-members plugin with your code but create a different version of it (named like My Espresso Members Plugin or something) and put it in a different directory so it can be activated separately.
That said, if you’re actually on 1.9 of members, that’s an old version of Event Espresso. As is 3.1.21 (which is about a year old), so it may do to just upgrade first and then mess with this stuff.
Viewing 3 reply threads
The support post ‘Override Price’ 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.