Remove action that adds speaker categories automatically
-
Good morning!
I’m working on a project that requires an event calendar and I’m testing your plugin for the development of this project and I came across the following problem. The plugin adds two speaker categories automatically in English and when translating to Portuguese and loading the page the plugin generates the speaker and organizer categories again. I understand that I can translate into a certain chosen language with the Polylang and Polylang Theme plugins, but there is no need to install two plugins just to translate four strings since the project will not have other languages so I would like to know how can I remove this action to have the name and slug in our language? I’ve tried to remove it in several ways and I couldn’t, the only way I managed so far was commenting line 39 of the file wp-event-solution/core/speaker/hooks.php //add_action( ‘init’, [$this, ‘ add_default_speaker_categories’], 99999 ); but this is not a good practice as it will be undone when the plugin is updated. So how can I do this via the theme function?
Sincerely,
Gilvanilson Santos
- The topic ‘Remove action that adds speaker categories automatically’ is closed to new replies.