wpseo_register_roles хук-событие . Yoast 1.0
Register capabilities, to make sure they are cleaned up.
Использование
add_action( 'wpseo_register_roles', 'action_function_name_1981' ); function action_function_name_1981(){ // action... }
Где вызывается хук
wpseo_register_roles
yoast/wp-seo-main.php 226
do_action( 'wpseo_register_roles' );
yoast/inc/class-upgrade.php 389
do_action( 'wpseo_register_roles' );
yoast/wp-seo-main.php 197
do_action( 'wpseo_register_roles' );
Где используется хук в ядре Yoast SEO
yoast/admin/roles/class-register-roles.php 19
add_action( 'wpseo_register_roles', [ $this, 'register' ] );