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 |
---|---|
2356 | /** |
2357 | * Filters the page number link for the current request. |
2358 | * |
2359 | * @since 2.5.0 |
2360 | * @since 5.2.0 Added the `$pagenum` argument. |
2361 | * |
2362 | * @param string $result The page number link. |
2363 | * @param int $pagenum The page number. |
2364 | */ |
2365 | $result = apply_filters( 'get_pagenum_link', $result, $pagenum ); |
2366 |
|
2367 | if ( $escape ) { |
2368 | return esc_url( $result ); |
2369 | } else { |
2370 | return esc_url_raw( $result ); |
2371 | } |
2372 | } |
2373 |
|
2374 | /** |