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 |
|---|---|
| 2978 | * @param array $args { |
| 2979 | * Optional. Default pagination arguments, see paginate_links(). |
| 2980 | * |
| 2981 | * @type string $screen_reader_text Screen reader text for navigation element. |
| 2982 | * Default 'Posts navigation'. |
| 2983 | * @type string $aria_label ARIA label text for the nav element. Default 'Posts'. |
| 2984 | * @type string $class Custom class for the nav element. Default 'pagination'. |
| 2985 | * } |
| 2986 | */ |
| 2987 | $args = apply_filters( 'the_posts_pagination_args', $args ); |
| 2988 | |
| 2989 | // Make sure we get a string back. Plain is the next best thing. |
| 2990 | if ( isset( $args['type'] ) && 'array' === $args['type'] ) { |
| 2991 | $args['type'] = 'plain'; |
| 2992 | } |
| 2993 | |
| 2994 | // Set up paginated links. |
| 2995 | $links = paginate_links( $args ); |
| 2996 | |