/** * Set up Achievements' updater * * @since 3.0 */ function dpa_setup_updater() { // Are we running an outdated version of Achievements? if (dpa_is_update()) { // Bump the version dpa_version_bump(); // Run the deactivation function to wipe roles, caps, and rewrite rules dpa_deactivation(); // Run the activation function to reset roles, caps, and rewrite rules dpa_activation(); } }
/** * Set up Achievements' updater * * @since Achievements (3.0) */ function dpa_setup_updater() { // Bail if no update needed if (!dpa_is_update()) { return; } // Call the automated updater dpa_version_updater(); }