/** * alm_core_update * Update default repeater on plugin update. * If plugin versions do not match or the plugin has been updated and we need to update our repeaters. * * @since 2.0.5 */ function alm_core_update() { if (!get_option('alm_version')) { // Add 'alm_version' to WP options table if it does not exist add_option('alm_version', ALM_VERSION); } $alm_installed_ver = get_option("alm_version"); // Get value from WP Option tbl if ($alm_installed_ver != ALM_VERSION) { alm_run_update(); } }
/** * alm_core_update * Update default repeater on plugin update. * If plugin versions do not match or the plugin has been updated and we need to update our repeaters. * * @since 2.0.5 */ function alm_core_update() { if (!get_option('alm_version')) { // Add 'alm_version' to WP options table if it does not exist add_option('alm_version', ALM_VERSION); } $alm_installed_ver = get_option("alm_version"); // Get value from WP Option tbl if ($alm_installed_ver != ALM_VERSION) { // Delete our ALM transients delete_transient('alm_dismiss_sharing'); // Update repeaters alm_run_update(); } }