Automattic\WooCommerce\Blocks\BlockTypes

ProductFilterAttribute::render_attribute_checkbox_list()publicWC 1.0

Метод класса: ProductFilterAttribute{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ProductFilterAttribute = new ProductFilterAttribute();
$ProductFilterAttribute->;

Код ProductFilterAttribute::render_attribute_checkbox_list() WC 9.6.0

}

$attribute_counts = array_reduce(
	$attribute_counts,
	function ( $acc, $count ) {
		$acc[ $count['term'] ] = $count['count'];
		return $acc;
	},
	array()
);

return $attribute_counts;
	}

	/**
	 * Get the attribute if with most term but closest to 30 terms.
	 *
	 * @return object
	 */
	private function get_default_product_attribute() {
// Cache this variable in memory to prevent repeated database queries to check
// for transient in the same request.
static $cached = null;

if ( $cached ) {
	return $cached;