Skip to Content
Menu

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.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

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

    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?