content_pagination

FILTER wp-includes\class-wp-query.php (ligne 4955) github
Filters the "pages" derived from splitting the post content. "Pages" are determined by splitting the post content based on the presence of `<!-- nextpage -->` tags.

Paramètres

Entrée :
$pages, $post
Sortie :
@param string[] $pages Array of "pages" from the post content split by `<!-- nextpage -->` tags.
@param WP_Post  $post  Current post object.

Utilisation

// Modifier la valeur avec le filtre 'content_pagination'
add_filter('content_pagination', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...