WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
    
the link is dead – Trying Tobemyself Jul 20 at 16:33
    
Which link, all linked strings are really fine, Currently. – bueltge Jul 20 at 16:56
    
the update_feedback link is not working. – Trying Tobemyself Jul 21 at 8:48
    
Works for me on each test, goal is adambrown.info/p/wp_hooks/hook/update_feedback – bueltge Jul 21 at 9:11
    
It only works for me when I use USA Proxy – Trying Tobemyself 2 days ago

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
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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