WP_REST_Plugins_Controller::is_plugin_installed( string $plugin ): bool

Checks if the plugin is installed.


Parameters

$plugin string Required
The plugin file.

Top ↑

Return

bool


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes

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