Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: content_pagination

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
4760            *
4761            * "Pages" are determined by splitting the post content based on the presence
4762            * of `<!-- nextpage -->` tags.
4763            *
4764            * @since 4.4.0
4765            *
4766            * @param string[] $pages Array of "pages" from the post content split by `<!-- nextpage -->` tags.
4767            * @param WP_Post  $post  Current post object.
4768            */
4769           $pages = apply_filters( 'content_pagination', $pages, $post );
4770
4771           $numpages = count( $pages );
4772
4773           if ( $numpages > 1 ) {
4774                if ( $page > 1 ) {
4775                     $more = 1;
4776                }
4777                $multipage = 1;
4778           } else {