I am a new plugin developer. My plugin uses shortcodes. I have noticed that when I go into the WordPress editor to edit a page that contains a shortcode for my plugin, the plugin fires. I only want my plugin to actually do work when the page is being rendered for display and not editing.
It seems that the plugin is fired other times, too. Sometimes when I have the code in debug mode (in VSCode, using xdebug) and I go over to MySQL admin, the plugin seems to be fired. I don’t understand this at all, but anyway I thought I would start with getting the first question first.
I am using 5.9 with the “Neve” theme, but this happens with other themes as well. Any help would be appreciated
- You must be logged in to reply to this topic.