pre_get_lastpostmodified

pre_get_lastpostmodified

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('pre_get_lastpostmodified') is found 1 times:

  • /wp-includes/post.php line 6432
    	 * @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 );