get_comments_number

get_comments_number

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_comments_number') is found 1 times:

  • /wp-includes/comment-template.php line 933
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
         *
         * @param string|int $comments_number A string representing the number of comments a post has, otherwise 0.
         * @param int        $post_id Post ID.
         */
        return apply_filters( 'get_comments_number', $comments_number, $post_id );
    }
     
    /**
     * Displays the language string for the number of comments the current post has.
     *
     * @since 0.71

See this hook used in plugins: