comments_number

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('comments_number') is found 1 times:

  • /wp-includes/comment-template.php line 1016
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
         * @param string $comments_number_text A translatable string formatted based on whether the count
         *                                     is equal to 0, 1, or 1+.
         * @param int    $comments_number      The number of post comments.
         */
        return apply_filters( 'comments_number', $comments_number_text, $comments_number );
    }
     
    /**
     * Retrieves the text of the current comment.
     *
     * @since 1.5.0

See this hook used in plugins: