but it is not changing my ticket prices to show only the ticket price without the surcharge. It is separated when you click on view more but not in the main price.
Can you confirm that your code snippet is getting picked up by putting a die(); statement into it? Between the add_filter line and the function definition should be fine. If it reacts to the die there, try moving it into the function, before the return.
I am not really familiar with that but I did add die(testing); to each location and when loading the site it does the same with both, it gave me a blank page with “testing” on it. Don’t know if that helps. I removed it now.
Can you let me know which version of Event Espresso you have installed and along with that, can you verify that this is the exact code you have in your custom plugin:
The support post ‘How to remove surcharge from base price listing’ 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.