Uses
Uses | Description |
---|---|
wp-admin/includes/plugin.php: is_plugin_active() | Determines whether a plugin is active. |
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.
(string) (Required) Path to the plugin file relative to the plugins directory.
(bool) True, if in the list of paused plugins. False, if not in the list.
File: wp-admin/includes/plugin.php
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'] ); }
Version | Description |
---|---|
5.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_plugin_paused