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
Describe the bug
The
is_plugin_active( 'paid-memberships-pro/paid-memberships-pro.php' )fails if the PMPro folder name is notpaid-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-toolkitcomes beforepaid-memberships-proalphabetically), this check will also fail.Expected behavior
Use a check like
defined( 'PMPRO_VERSION' )and either: