wpseo_custom_site_kit_base_date
Filter: wpseo_custom_site_kit_base_date Allow the base date for Site Kit requests to be dynamically set.
Использование
add_filter( 'wpseo_custom_site_kit_base_date', 'wp_kama_wpseo_custom_site_kit_base_date_filter' );
/**
* Function for `wpseo_custom_site_kit_base_date` filter-hook.
*
* @param string $base_date The custom base date for Site Kit requests.
*
* @return string
*/
function wp_kama_wpseo_custom_site_kit_base_date_filter( $base_date ){
// filter...
return $base_date;
}
- $base_date(строка)
- The custom base date for Site Kit requests.
По умолчанию: 'now'
Где вызывается хук
wpseo_custom_site_kit_base_date
yoast/src/dashboard/user-interface/time-based-seo-metrics/time-based-seo-metrics-route.php 292
$base_date = \apply_filters( 'wpseo_custom_site_kit_base_date', 'now' );