{$adjacent}_post_rel_link

FILTER wp-includes\link-template.php (ligne 2111) github
Filters the adjacent post relational link. The dynamic portion of the hook name, `$adjacent`, refers to the type of adjacency, 'next' or 'previous'. Possible hook names include:  - `next_post_rel_link`  - `previous_post_rel_link`

Paramètres

Entrée :
$link
Sortie :
@param string $link The relational link.

Utilisation

// Modifier la valeur avec le filtre '{$adjacent}_post_rel_link'
add_filter('{$adjacent}_post_rel_link', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($link) {
    // Modifier la valeur
    return $link;
}

Actualités

Chargement des actualités...