Skip to Content

initialization_delete_plugins()

Delete useless plugins.

PHP April 27, 2017

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

This function currently only deletes the Hello Dolly plugin if it still exists from the original WordPress install.

Source File

Located in /libs/Admin/Automation.php on line 394.

No Hooks

This function does not have any filters or actions available. Request one?
PHP
        public function initialization_delete_plugins(){
            //Remove Hello Dolly plugin if it exists
            if ( file_exists(WP_PLUGIN_DIR . '/hello.php') ){
                delete_plugins(array('hello.php'));
            }
        }

Override

This function can not be short-circuited with an override filter. Request one?