pre_count_many_users_posts

pre_count_many_users_posts

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('pre_count_many_users_posts') is found 1 times:

  • /wp-includes/user.php line 680
    	 * @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;
    	}
    
    	$userlist = implode( ',', array_map( 'absint', $users ) );
    	$where    = get_posts_by_author_sql( $post_type, true, null, $public_only );