/** * Install actions such as installing pages when a button is clicked. */ public static function install_actions() { if (!empty($_GET['do_update_wpclubmanager'])) { self::update(); // Update complete WPCM_Admin_Notices::remove_notice('update'); // What's new redirect delete_transient('_wpcm_activation_redirect'); wp_redirect(admin_url('index.php?page=wpcm-about&wpcm-updated=true')); exit; } }