wpseek.com
A WordPress-centric search engine for devs and theme authors
is_uninstallable_plugin › WordPress Function
Since2.7.0
Deprecatedn/a
› is_uninstallable_plugin ( $plugin )
Parameters: |
|
Returns: |
|
Defined at: |
|
Codex: |
Determines whether the plugin can be uninstalled.
Related Functions: uninstall_plugin, wp_ajax_install_plugin, install_plugins_upload, is_wpmu_sitewide_plugin, validate_plugin
Source
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; }