is_uninstallable_plugin [ WordPress Function ]
is_uninstallable_plugin ( $plugin )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: uninstall_plugin, install_plugins_upload, is_wpmu_sitewide_plugin, validate_plugin, register_uninstall_hook
Whether the plugin can be uninstalled.
Source
<?php
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;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- #14955 (Themes should support uninstall.php or uninstall hook ...
Should is_uninstallable_plugin, register_uninstall_hook and uninstall_plugin be extended to check theme directory or should versions (is_uninstallable_theme, ...
core.trac.wordpress.org - WordPress Plugin Deinstall Data Automatically - WP Engineer
Sep 18, 2008 ... is_uninstallable_plugin($plugin); uninstall_plugin($plugin). and the associated hook wp-includes/plugin.php. register_uninstall_hook($file ...
wpengineer.com - PHPXRef 0.7 : WordPress : Detail view of plugin.php
activate_plugin() deactivate_plugins() activate_plugins() delete_plugins() validate_active_plugins() validate_plugin() is_uninstallable_plugin() uninstall_plugin() ...
phpxref.ftwr.co.uk - delete_plugins | A HitchHackers guide through WordPress
Feb 11, 2011... array(); foreach( $plugins as $plugin_file ) { // Run Uninstall hook if ( is_uninstallable_plugin( $plugin_file ) ) uninstall_plugin($plugin_file); ...
hitchhackerguide.com