I’m trying to change the twitter message by altering espresso-social.php (so far I’ve put the twitter code into custom-shortcodes.php – but my data-text never changes. Any ideas why?
So the reason why the changes don’t work is because the espresso-social plugin loads before Event Espresso, which in turn loads up the files from /wp-content/uploads/espresso/.
While the plugin’s author left comments about using the Custom Files add-on to override its functions, they may not have realized this.
What you can do is load up your custom function in its own little plugin. The added bonus is you can activate/deactivate it if need be without FTPing in.
You can edit line 20, name the file something like custom-tweet-buttom.php (the name needs to fall in an alphabetized list *before* espresso-social so it will load before it), then upload the file to wp-content/plugins and activate.
The support post ‘Change Twitter Message’ 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.