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

apply_filters('comments_number') is found 1 times:

  • /wp-includes/comment-template.php line 1016
    	 * @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: