WP_REST_Plugins_Controller::is_plugin_installed( string $plugin )

Checks if the plugin is installed.

Parameters Parameters


(string) (Required) The plugin file.

Top ↑

Return Return


Top ↑

Source Source

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

	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 User Contributed Notes

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