aioseo_run_updates

aioseo_run_updates

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.8.7

do_action('aioseo_run_updates') is found 2 times:

  • /app/Common/Main/Updates.php line 76
    		$lastActiveVersion = aioseo()->internalOptions->internal->lastActiveVersion;
    		// Don't run updates if the last active version is the same as the current version.
    		if ( aioseo()->version === $lastActiveVersion ) {
    			// Allow addons to run their updates.
    			do_action( 'aioseo_run_updates', $lastActiveVersion );
    
    			return;
    		}
    
    		// Try to acquire the lock.
    		if ( ! aioseo()->core->db->acquireLock( 'aioseo_run_updates_lock', 0 ) ) {
    
  • /app/Common/Main/Updates.php line 279
    		if ( version_compare( $lastActiveVersion, '4.8.7', '<' ) ) {
    			$this->addColumnIndexForCornerstoneContent();
    		}
    
    		do_action( 'aioseo_run_updates', $lastActiveVersion );
    
    		// Always clear the cache if the last active version is different from our current.
    
    		if ( version_compare( $lastActiveVersion, AIOSEO_VERSION, '<' ) ) {
    			aioseo()->core->cache->clear();
    		}