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 |
---|---|
158 |
|
159 | <?php |
160 | $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0; |
161 | if ( empty($pagenum) ) |
162 | $pagenum = 1; |
163 |
|
164 | $cats_per_page = get_user_option('categories_per_page'); |
165 | if ( empty($cats_per_page) ) |
166 | $cats_per_page = 20; |
167 | $cats_per_page = apply_filters('edit_categories_per_page', $cats_per_page); |
168 |
|
169 | if ( !empty($_GET['s']) ) |
170 | $num_cats = count(get_categories(array('hide_empty' => 0, 'search' => $_GET['s']))); |
171 | else |
172 | $num_cats = wp_count_terms('category'); |
173 |
|
174 | $page_links = paginate_links( array( |
175 | 'base' => add_query_arg( 'pagenum', '%#%' ), |
176 | 'format' => '', |