_yoast_run_migrations хук-событиеYoast 1.0

If the query fails run the migrations and try again. Action is intentionally undocumented and should not be used by third-parties.

Использование

add_action( '_yoast_run_migrations', 'wp_kama__yoast_run_migrations_action' );

/**
 * Function for `_yoast_run_migrations` action-hook.
 * 
 * @return void
 */
function wp_kama__yoast_run_migrations_action(){

	// action...
}

Где вызывается хук

ORM::run()
_yoast_run_migrations
Cleanup_Command::cleanup_current_site()
_yoast_run_migrations
Index_Command::index()
_yoast_run_migrations
yoast/lib/orm.php 1959
\do_action( '_yoast_run_migrations' );
yoast/src/commands/cleanup-command.php 152
\do_action( '_yoast_run_migrations' );
yoast/src/commands/index-command.php 177
\do_action( '_yoast_run_migrations' );

Где используется хук в Yoast SEO

yoast/src/initializers/migration-runner.php 76
\add_action( '_yoast_run_migrations', [ $this, 'run_free_migrations' ] );