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