forked from messica/pmpro-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 12
Plugin not working if PMPro folder name is incorrect #68
Copy link
Copy link
Open
Labels
Description
Describe the bug
The is_plugin_active( 'paid-memberships-pro/paid-memberships-pro.php' ) fails if the PMPro folder name is not paid-memberships-pro. This is common for release candidates.
Note that if this plugin is ever loaded before PMPro (which typically wouldn't happen since pmpro-toolkit comes before paid-memberships-pro alphabetically), this check will also fail.
Expected behavior
Use a check like defined( 'PMPRO_VERSION' ) and either:
- Run the check in each specific place that you want to ensure that PMPro is enabled
- Or run the check on init and, if it passes, hook all the necessary functions for the plugin to run
Reactions are currently unavailable