On this page
apply_filters( 'content_pagination', string[] $pages, WP_Post $post )
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
File: wp-includes/class-wp-query.php. View all references
$pages = apply_filters( 'content_pagination', $pages, $post );
Related
Used By
| Used By | Description |
|---|---|
| WP_Query::generate_postdata() wp-includes/class-wp-query.php | Generate post data. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/content_pagination