You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use TGM_Plugin_Activation::get_instance()->is_tgmpa_complete(), but as this method is meant for internal use, it will report false if there are plugins which need updates or optional plugins which haven't been installed.
Alternatively - in your case this might be the better option - you can pass your list of required plugins through a foreach() checking each with the WP native is_plugin_active().
Is there a way to check whether all required plugins have been installed before continuing with the theme code execution?
I would like to halt (gracefully) and show an error message on the front end for users without the required plugins.
The text was updated successfully, but these errors were encountered: