pre_get_lastpostmodified

pre_get_lastpostmodified

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_get_lastpostmodified') is found 1 times:

  • /wp-includes/post.php line 7445
    	 * @param string       $timezone         Location to use for getting the post modified date.
    	 *                                       See get_lastpostdate() for accepted `$timezone` values.
    	 * @param string       $post_type        The post type to check.
    	 */
    	$lastpostmodified = apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type );
    
    	if ( false !== $lastpostmodified ) {
    		return $lastpostmodified;
    	}
    
    	$lastpostmodified = _get_last_post_time( $timezone, 'modified', $post_type );