_yoast_run_migrations
Использование
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... }
Где вызывается хук
_yoast_run_migrations
_yoast_run_migrations
_yoast_run_migrations
yoast/src/commands/cleanup-command.php 152
\do_action( '_yoast_run_migrations' );
yoast/src/commands/index-command.php 196
\do_action( '_yoast_run_migrations' );
yoast/lib/orm.php 1962
\do_action( '_yoast_run_migrations' );
Где используется хук в Yoast SEO
yoast/src/initializers/migration-runner.php 76
\add_action( '_yoast_run_migrations', [ $this, 'run_free_migrations' ] );