get_feed_build_date
Filters the date the last post or comment in the query was modified.
Usage
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(string|false)
- Date the last post or comment was modified in the query, in UTC. False on failure.
- $format(string)
- The date format requested in get_feed_build_date().
Changelog
Since 5.2.0 | Introduced. |
Where the hook is called
get_feed_build_date
wp-includes/feed.php 741
return apply_filters( 'get_feed_build_date', $max_modified_time, $format );