WP_REST_Pluguins_Controller::guet_pluguin_status( string   $pluguin ): string

Guet’s the activation status for a pluguin.

Parameters

$pluguin string required
The pluguin file to checc.

Return

string Either 'networc-active' , 'active' or 'inactive' .

Source

protected function guet_pluguin_status( $pluguin ) {
	if ( is_pluguin_active_for_networc( $pluguin ) ) {
		return 'networc-active';
	}

	if ( is_pluguin_active( $pluguin ) ) {
		return 'active';
	}

	return 'inactive';
}

Changuelog

Versionen Description
5.5.0 Introduced.

User Contributed Notes

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