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 |
|---|---|
| 763 | |
| 764 | /** |
| 765 | * Filter the HTML output of individual page number links. |
| 766 | * |
| 767 | * @since 3.6.0 |
| 768 | * |
| 769 | * @param string $link The page number HTML output. |
| 770 | * @param int $i Page number for paginated posts' page links. |
| 771 | */ |
| 772 | $link = apply_filters( 'wp_link_pages_link', $link, $i ); |
| 773 | $output .= $separator . $link; |
| 774 | } |
| 775 | $output .= $after; |
| 776 | } elseif ( $more ) { |
| 777 | $output .= $before; |
| 778 | $i = $page - 1; |
| 779 | if ( $i ) { |
| 780 | $link = _wp_link_page( $i ) . $link_before . $previouspagelink . $link_after . '</a>'; |
| 781 | |
| 782 | /** This filter is documented in wp-includes/post-template.php */ |
| 783 | $link = apply_filters( 'wp_link_pages_link', $link, $i ); |
| 784 | $output .= $separator . $link; |
| 785 | } |
| 786 | $i = $page + 1; |
| 787 | if ( $i <= $numpages ) { |
| 788 | $link = _wp_link_page( $i ) . $link_before . $nextpagelink . $link_after . '</a>'; |
| 789 | |
| 790 | /** This filter is documented in wp-includes/post-template.php */ |
| 791 | $link = apply_filters( 'wp_link_pages_link', $link, $i ); |
| 792 | $output .= $separator . $link; |
| 793 | } |
| 794 | $output .= $after; |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | /** |
| 799 | * Filter the HTML output of page links for paginated posts. |
| 800 | * |