Used By
Used By | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::check_read_permission() | Checks if the given plugin can be viewed by the current user. |
Checks if the plugin is installed.
(string) (Required) The plugin file.
(bool)
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 ); }
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_plugins_controller/is_plugin_installed