pre_get_lastpostmodified

FILTER wp-includes\post.php (ligne 7591) github
Pre-filter the return value of get_lastpostmodified() before the query is run.

Paramètres

Entrée :
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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...