You appear to be a bot. Output may be restricted
Description
Whether the plugin can be uninstalled.
Usage
$bool = is_uninstallable_plugin( $plugin );
Parameters
- $plugin
- ( string ) required – Path to the plugin file relative to the plugins directory.
Returns
bool Whether plugin can be uninstalled.
Source
File name: wordpress/wp-admin/includes/plugin.php
Lines:
1 to 10 of 10
function is_uninstallable_plugin( $plugin ) { $file = plugin_basename( $plugin ); $uninstallable_plugins = (array) get_option( 'uninstall_plugins' ); if ( isset( $uninstallable_plugins[ $file ] ) || file_exists( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ) ) { return true; } return false; }