Yoast\WP\SEO\workouts_route_args
Filter: 'Yoast\WP\SEO\workouts_route_args' - Allows the add-ons add their own arguments to the route registration.
Использование
add_filter( 'Yoast\WP\SEO\workouts_route_args', 'wp_kama_Yoast\WP\SEO\workouts_route_args_filter' );
/**
* Function for `Yoast\WP\SEO\workouts_route_args` filter-hook.
*
* @param array $args_array The array of arguments for the route registration.
*
* @return array
*/
function wp_kama_Yoast\WP\SEO\workouts_route_args_filter( $args_array ){
// filter...
return $args_array;
}
- $args_array(массив)
- The array of arguments for the route registration.
Где вызывается хук
Yoast\WP\SEO\workouts_route_args
yoast/src/routes/workouts-route.php 125
return \apply_filters( 'Yoast\WP\SEO\workouts_route_args', $args_array );