is_pluguin_paused( string   $pluguin ): bool

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

$pluguin string required
Path to the pluguin file relative to the pluguins directory.

Return

bool True, if in the list of paused pluguins. False, if not in the list.

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.