is_plugin_paused()
Determines whether a plugin is technically active but was paused while loading.
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
No Hooks.
Return
true|false
. True, if in the list of paused plugins. False, if not in the list.
Usage
is_plugin_paused( $plugin );
- $plugin(string) (required)
- Path to the plugin file relative to the plugins directory.
Notes
- Global. WP_Paused_Extensions_Storage. $_paused_plugins
Changelog
Since 5.2.0 | Introduced. |
is_plugin_paused() is plugin paused code WP 6.5.2
function is_plugin_paused( $plugin ) { if ( ! isset( $GLOBALS['_paused_plugins'] ) ) { return false; } if ( ! is_plugin_active( $plugin ) ) { return false; } list( $plugin ) = explode( '/', $plugin ); return array_key_exists( $plugin, $GLOBALS['_paused_plugins'] ); }