Make WordPress Core

Ticket #63004: 63004.2.diff

File 63004.2.diff, 570 bytes (added by ethitter, 9 months ago)

Add documentation

  • src/wp-includes/user.php

     
    661661        global $wpdb;
    662662
    663663        $count = array();
     664
     665        /**
     666         * Short-circuit counting of users' posts.
     667         *
     668         * @since 6.8.0
     669         *
     670         * @param bool $skip_count Whether to skip counting the users' posts.
     671         */
     672        if ( apply_filters( 'skip_count_many_users_posts', false ) ) {
     673                return $count;
     674        }
     675
    664676        if ( empty( $users ) || ! is_array( $users ) ) {
    665677                return $count;
    666678        }