apply_filters( ‘content_pagination’, string[] $pages, WP_Post $post )

In this article

Filters the “pages” derived from splitting the post content.

Description

"Pages" are determined by splitting the post content based on the presence of <!-- nextpage --> tags.

Parameters

$pagesstring[]
Array of "pages" from the post content split by <!-- nextpage --> tags.
$postWP_Post
Current post object.

Source

$pages = apply_filters( 'content_pagination', $pages, $post );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.