Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Mike Howard on "Redirect once plugin update completed"

$
0
0

What is the best way to redirect users to a page once my plugin has updated?

Updates are performed within WordPress itself, so I thought that adding a version number into the options table and doing a camparison would be best.

I did this and hooked into it using admin_init but it did not work.

My function was...

function has_updated(){
wp_redirect( admin_url( 'path/myupdatepage.php' ) );
exit;
}
add_action(  'admin_init', 'has_updated'  );

but the redirect is not happening


Viewing all articles
Browse latest Browse all 8245

Trending Articles