0

Are there any hooks for running plugin code after a core upgrade?

Specifically, I'm running into issues that a users wp-admin column choice in the 'Screen Options' are modified after an upgrade - I believe if they choose "auto". After doing an svn sw I lost my "publish" box from the post/pages page. This is causing some major issues in my wp-admin skin.

2 Answers 2

1

Check the filter update_feedback, he works after the update and you can use for all stuff after an update.

An example plugin can you find in this trunk.

6
2

You can use the _core_updated_successfully action hook to run your plugin code after the WordPress core upgrade.

The hook passes the current WordPress Version as parameter.

add_action( '_core_updated_successfully','your_function');
function your_function(){
    //code to be executed after WordPress Core Update
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.