_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.24.8.1

do_action('_yoast_run_migrations') is found 3 times:

  • /lib/orm.php line 1962
    1959
    1960
    1961
    1962
    1963
    1964
    1965
    1966
    1967
    1968
    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
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
        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
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
        $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: