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 |
|---|---|
| 672 | * by the user ID. |
| 673 | * |
| 674 | * @since 6.8.0 |
| 675 | * |
| 676 | * @param string[]|null $count The post counts. Return a non-null value to short-circuit. |
| 677 | * @param int[] $users Array of user IDs. |
| 678 | * @param string|string[] $post_type Single post type or array of post types to check. |
| 679 | * @param bool $public_only Whether to only return counts for public posts. |
| 680 | */ |
| 681 | $pre = apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only ); |
| 682 | if ( null !== $pre ) { |
| 683 | return $pre; |
| 684 | } |
| 685 | |
| 686 | // Cleanup the users array. Remove duplicates and sort for consistent ordering. |
| 687 | $users = array_unique( array_filter( array_map( 'intval', $users ) ) ); |
| 688 | sort( $users ); |
| 689 | |
| 690 | // Cleanup the post type argument. Remove duplicates and sort for consistent ordering. |