WP_REST_Plugins_Controller::is_plugin_installed( string $plugin ): bool

In this article

Checks if the plugin is installed.

Parameters

$pluginstringrequired
The plugin file.

Return

bool

Source

protected function is_plugin_installed( $plugin ) {
	return file_exists( WP_PLUGIN_DIR . '/' . $plugin );
}

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

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