get_feed_build_date
Filters the date the last post or comment in the query was modified.
Использование
add_filter( 'get_feed_build_date', 'wp_kama_get_feed_build_date_filter', 10, 2 );
/**
* Function for `get_feed_build_date` filter-hook.
*
* @param string|false $max_modified_time Date the last post or comment was modified in the query, in UTC. False on failure.
* @param string $format The date format requested in get_feed_build_date().
*
* @return string|false
*/
function wp_kama_get_feed_build_date_filter( $max_modified_time, $format ){
// filter...
return $max_modified_time;
}
- $max_modified_time(строка|false)
- Date the last post or comment was modified in the query, in UTC. False on failure.
- $format(строка)
- The date format requested in get_feed_build_date().
Список изменений
| С версии 5.2.0 | Введена. |
Где вызывается хук
get_feed_build_date
wp-includes/feed.php 757
return apply_filters( 'get_feed_build_date', $max_modified_time, $format );