pre_count_many_users_posts
pre_count_many_users_posts
Hook Type: filter
Displaying hooks found in version: wordpress-6.9apply_filters('pre_count_many_users_posts') is found 1 times:
- /wp-includes/user.php line 681
* @param int[] $users Array of user IDs. * @param string|string[] $post_type Single post type or array of post types to check. * @param bool $public_only Whether to only return counts for public posts. */ $pre = apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only ); if ( null !== $pre ) { return $pre; } // Cleanup the users array. Remove duplicates and sort for consistent ordering. $users = array_unique( array_filter( array_map( 'intval', $users ) ) );