wpseo_option_wpseo_defaults
Filter the wpseo option defaults.
Использование
add_filter( 'wpseo_option_wpseo_defaults', 'wp_kama_wpseo_option_defaults_filter' ); /** * Function for `wpseo_option_wpseo_defaults` filter-hook. * * @param array $defaults Array the defaults for the `wpseo` option attributes. * * @return array */ function wp_kama_wpseo_option_defaults_filter( $defaults ){ // filter... return $defaults; }
- $defaults(массив)
- Array the defaults for the wpseo option attributes.
Где вызывается хук
wpseo_option_wpseo_defaults
yoast/inc/options/class-wpseo-option-wpseo.php 237
$this->defaults = apply_filters( 'wpseo_option_wpseo_defaults', $this->defaults );