Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




is_uninstallable_plugin [ WordPress Function ]

is_uninstallable_plugin ( $plugin )
Parameters:
  • (string) $plugin Plugin path to check.
Returns:
  • (bool) Whether plugin can be uninstalled.
Defined at:



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_existsWP_PLUGIN_DIR '/' dirname($file) . '/uninstall.php' ) )
        return 
true;

    return 
false;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics