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.
Line | Code |
---|---|
632 | $defaults = array( |
633 | 'before' => '<p>' . __('Pages:'), 'after' => '</p>', |
634 | 'link_before' => '', 'link_after' => '', |
635 | 'next_or_number' => 'number', 'nextpagelink' => __('Next page'), |
636 | 'previouspagelink' => __('Previous page'), 'pagelink' => '%', |
637 | 'echo' => 1 |
638 | ); |
639 |
|
640 | $r = wp_parse_args( $args, $defaults ); |
641 | $r = apply_filters( 'wp_link_pages_args', $r ); |
642 | extract( $r, EXTR_SKIP ); |
643 |
|
644 | global $page, $numpages, $multipage, $more, $pagenow; |
645 |
|
646 | $output = ''; |
647 | if ( $multipage ) { |
648 | if ( 'number' == $next_or_number ) { |
649 | $output .= $before; |
650 | for ( $i = 1; $i < ($numpages+1); $i = $i + 1 ) { |