WC_Template_Loader::unsupported_theme_comments_number_filter()
Suppress the comments number on the Shop page for unsupported themes since there is no commenting on the Shop page.
Метод класса: WC_Template_Loader{}
Хуков нет.
Возвращает
Строку
.
Использование
$result = WC_Template_Loader::unsupported_theme_comments_number_filter( $comments_number );
- $comments_number(строка) (обязательный)
- The comments number text.
Список изменений
С версии 3.4.5 | Введена. |
Код WC_Template_Loader::unsupported_theme_comments_number_filter() WC Template Loader::unsupported theme comments number filter WC 9.4.2
public static function unsupported_theme_comments_number_filter( $comments_number ) { if ( is_page( self::$shop_page_id ) ) { return ''; } return $comments_number; }