_yoast_run_migrations

_yoast_run_migrations

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-seo.22.3

do_action('_yoast_run_migrations') is found 3 times:

  • /lib/orm.php line 1962
     
    		if ( $success === false ) {
    			// If the query fails run the migrations and try again.
    			// Action is intentionally undocumented and should not be used by third-parties.
    			\do_action( '_yoast_run_migrations' );
    			$success = self::execute( $query, $this->values );
    		}
    
    		$this->reset_idiorm_state();
    
    		if ( $success === false ) {
    
  • /src/commands/cleanup-command.php line 152
    			return $total_removed;
    		}
    
    		// Make sure the DB is up to date first.
    		\do_action( '_yoast_run_migrations' );
    
    		$tasks    = $this->cleanup_integration->get_cleanup_tasks();
    		$limit    = (int) $assoc_args['batch-size'];
    		$interval = (int) $assoc_args['interval'];
    
    		/* translators: %1$s is the site url of the site that is cleaned up. %2$s is the name of the cleanup task that is currently running. */
    
  • /src/commands/index-command.php line 196
    		$blog_ids = \get_sites( $criteria );
    
    		foreach ( $blog_ids as $blog_id ) {
    			\switch_to_blog( $blog_id );
    			\do_action( '_yoast_run_migrations' );
    			$this->run_indexation_actions( $assoc_args );
    			\restore_current_blog();
    		}
    	}
    
    	/**
    

See this hook used in plugins: