wpseo_debug_json_data
Filter the Yoast SEO development mode.
Использование
add_filter( 'wpseo_debug_json_data', 'wp_kama_wpseo_debug_json_data_filter' ); /** * Function for `wpseo_debug_json_data` filter-hook. * * @param array $data Allows filtering of the JSON data for debug purposes. * * @return array */ function wp_kama_wpseo_debug_json_data_filter( $data ){ // filter... return $data; }
- $data(массив)
- Allows filtering of the JSON data for debug purposes.
Где вызывается хук
wpseo_debug_json_data
yoast/inc/class-wpseo-utils.php 927
$data = apply_filters( 'wpseo_debug_json_data', $data );