Detect disabled plugin when using shortcodes
-
Hi Jose,
would it be possible to build in a mechanism that your plugin automatically detects when a certain shortcode is used on a page but not executed because the underlying plugin is disabled by your plugin?
I spent a few hours recently, to figure out why a certain shortcode would not execute. I was blaming WPML, I was blaming Elementor, I was blaming cache, but then, after shutting down plugins one by one, the cause was your plugin. Not a bug, but a personal configuration I had forgotten about, and needed to be applied to a new page containing the shortcode.
Example:
Contact Form 7 is disabled on all pages but the contact page by your wonderful plugin. So far, so good. A year later, the site becomes multilangual, a second contact page is created in another language, but the shortcode won’t work, because the administrator (me in this case) forgot all about the plugin being disabled on all pages other than the original contact page.
So the checked conditions would be:
– if logged in as admin
– if page content contains the shortcode brackets, suggesting the shortcode has not been executed
– your plugin shows an admin message saying: shortcode not executed, possibly due to disabled plugins, the following plugins are disabled on this page.
Maybe this is too far fetched and maybe you do not consider this the responsibility of your plugin, and I would agree, but it would be super user-friendly for people being not always sharp on the invisible effects of your plugin.
So, I just wanted to hand you the option to take into consideration. Thanks for considering it. ??
Much Thanks! Regards, Tez
- The topic ‘Detect disabled plugin when using shortcodes’ is closed to new replies.