Yoast\WP\SEO\Dashboard\Domain\Filter_Pairs

Product_Category_Filter_Pair{}Yoast 1.0

This class describes the product category filter pair.

Хуков нет.

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

$Product_Category_Filter_Pair = new Product_Category_Filter_Pair();
// use class methods

Методы

  1. public get_filtered_content_type()
  2. public get_filtering_taxonomy()

Код Product_Category_Filter_Pair{} Yoast 24.4

class Product_Category_Filter_Pair implements Filter_Pairs_Interface {

	/**
	 * Gets the filtering taxonomy.
	 *
	 * @return string The filtering taxonomy.
	 */
	public function get_filtering_taxonomy(): string {
		return 'product_cat';
	}

	/**
	 * Gets the filtered content type.
	 *
	 * @return string The filtered content type.
	 */
	public function get_filtered_content_type(): string {
		return 'product';
	}
}