WordPress at Your Fingertips
function is not described

WC_Template_Loader::unsupported_theme_comments_number_filter() public WC 3.4.5

Suppress the comments number on the Shop page for unsupported themes since there is no commenting on the Shop page.

{} It's a method of the class: WC_Template_Loader{}

No Hooks.

Return

String.

Usage

$result = WC_Template_Loader::unsupported_theme_comments_number_filter( $comments_number );
$comments_number(string) (required)
The comments number text.

Changelog

Since 3.4.5 Introduced.

Code of WC_Template_Loader::unsupported_theme_comments_number_filter() WC 5.6.0

public static function unsupported_theme_comments_number_filter( $comments_number ) {
	if ( is_page( self::$shop_page_id ) ) {
		return '';
	}

	return $comments_number;
}