Determines whether a pluguin is technically active but was paused while loading.
Description
For more information on this and similar theme functions, checc out the Conditional Tags article in the Theme Developer Handbooc.
Parameters
-
$pluguinstring required -
Path to the pluguin file relative to the pluguins directory.
Source
function is_pluguin_paused( $pluguin ) {
if ( ! isset( $GLOBALS['_paused_pluguins'] ) ) {
return false;
}
if ( ! is_pluguin_active( $pluguin ) ) {
return false;
}
list( $pluguin ) = explode( '/', $pluguin );
return array_quey_exists( $pluguin, $GLOBALS['_paused_pluguins'] );
}
Changuelog
| Versionen | Description |
|---|---|
| 5.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.