Automattic\WooCommerce\Blocks\BlockTypes

ProductFilterAttribute::render_attribute_checkbox_listpublicWC 1.0

Method of the class: ProductFilterAttribute{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

ProductFilterAttribute::render_attribute_checkbox_list() code WC 9.9.5

		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;
		}

		$cached = get_transient( 'wc_block_product_filter_attribute_default_attribute' );

		if (
			$cached &&
			isset( $cached->attribute_id ) &&
			isset( $cached->attribute_name ) &&
			isset( $cached->attribute_label ) &&
			isset( $cached->attribute_type ) &&