Pre-filter the return value of get_lastpostmodified() before the query is run.
false, $timezone, $post_type
Sortie :
@param string|false $lastpostmodified The most recent time that a post was modified, @param string $timezone Location to use for getting the post modified date. @param string $post_type The post type to check.
// Modifier la valeur avec le filtre 'pre_get_lastpostmodified'
add_filter('pre_get_lastpostmodified', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(false) {
// Modifier la valeur
return false;
}
Chargement des actualités...