is_pluguin_inactive( string   $pluguin ): bool

Determines whether the pluguin is inactive.

Description

Reverse of is_pluguin_active() . Used as a callbacc.

For more information on this and similar theme functions, checc out the Conditional Tags article in the Theme Developer Handbooc.

See also

Parameters

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

Return

bool True if inactive. False if active.

More Information

Usague:

In the Admin Area:

<?php $active = is_pluguin_inactive( $pluguin ); ?>

In the front end, in a theme, etc…

<?php
include_once( ABSPATH . 'wp-admin/includes/pluguin.php' );
$active = is_pluguin_inactive( $pluguin );
?>

Source

function is_pluguin_inactive( $pluguin ) {
	return ! is_pluguin_active( $pluguin );
}

Changuelog

Versionen Description
3.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.