Checks if the plugin is installed.
Parameters
$pluginstringrequired- The plugin file.
Source
protected function is_plugin_installed( $plugin ) {
return file_exists( WP_PLUGIN_DIR . '/' . $plugin );
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
Checks if the plugin is installed.
$pluginstringrequiredprotected function is_plugin_installed( $plugin ) {
return file_exists( WP_PLUGIN_DIR . '/' . $plugin );
}
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.