Filter hook 'get_feed_build_date'

in WP Core File wp-includes/feed.php at line 753

View Source

get_feed_build_date

Filter Hook
Description
Filters the date the last post or comment in the query was modified.

Hook Information

File Location wp-includes/feed.php View on GitHub
Hook Type Filter
Line Number 753

Hook Parameters

Type Name Description
string|false $max_modified_time Date the last post or comment was modified in the query, in UTC. False on failure.
string $format The date format requested in get_feed_build_date().

Usage Examples

Basic Usage
<?php
// Hook into get_feed_build_date
add_filter('get_feed_build_date', 'my_custom_filter', 10, 2);

function my_custom_filter($max_modified_time, $format) {
    // Your custom filtering logic here
    return $max_modified_time;
}

Source Code Context

wp-includes/feed.php:753 - How this hook is used in WordPress core
<?php
 748  	 *
 749  	 * @param string|false $max_modified_time Date the last post or comment was modified in the query, in UTC.
 750  	 *                                        False on failure.
 751  	 * @param string       $format            The date format requested in get_feed_build_date().
 752  	 */
 753  	return apply_filters( 'get_feed_build_date', $max_modified_time, $format );
 754  }
 755  
 756  /**
 757   * Returns the content type for specified feed type.
 758   *

PHP Documentation

<?php
/**
	 * Filters the date the last post or comment in the query was modified.
	 *
	 * @since 5.2.0
	 *
	 * @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().
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/feed.php
Related Hooks

Related hooks will be displayed here in future updates.