Astra_Woocommerce::subcategory_count_markup( mixed $content, object $category )
Subcategory Count Markup
Description
Parameters
- $content
-
(mixed) (Required) Count Markup.
- $category
-
(object) (Required) Object of Category.
Return
(mixed)
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function subcategory_count_markup( $content, $category ) {
$content = sprintf( // WPCS: XSS OK.
/* translators: 1: number of products */
_nx( '%1$s Product', '%1$s Products', $category->count, 'product categories', 'astra' ),
number_format_i18n( $category->count )
);
return '<mark class="count">' . $content . '</mark>';
}
Expand full source code Collapse full source code View on Trac