WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 3 times in this file.
Line | Code |
---|---|
780 | } |
781 | /** |
782 | * Filter the HTML output of individual page number links. |
783 | * |
784 | * @since 3.6.0 |
785 | * |
786 | * @param string $link The page number HTML output. |
787 | * @param int $i Page number for paginated posts' page links. |
788 | */ |
789 | $link = apply_filters( 'wp_link_pages_link', $link, $i ); |
790 | $output .= $r['separator'] . $link; |
791 | } |
792 | $output .= $r['after']; |
793 | } elseif ( $more ) { |
794 | $output .= $r['before']; |
795 | $prev = $page - 1; |
796 | if ( $prev ) { |
797 | $link = _wp_link_page( $prev ) . $r['link_before'] . $r['previouspagelink'] . $r['link_after'] . '</a>'; |
798 |
|
799 | /** This filter is documented in wp-includes/post-template.php */ |
800 | $link = apply_filters( 'wp_link_pages_link', $link, $prev ); |
801 | $output .= $r['separator'] . $link; |
802 | } |
803 | $next = $page + 1; |
804 | if ( $next <= $numpages ) { |
805 | $link = _wp_link_page( $next ) . $r['link_before'] . $r['nextpagelink'] . $r['link_after'] . '</a>'; |
806 |
|
807 | /** This filter is documented in wp-includes/post-template.php */ |
808 | $link = apply_filters( 'wp_link_pages_link', $link, $next ); |
809 | $output .= $r['separator'] . $link; |
810 | } |
811 | $output .= $r['after']; |
812 | } |
813 | } |
814 |
|
815 | /** |
816 | * Filter the HTML output of page links for paginated posts. |
817 | * |