Yoast\WP\SEO\Dashboard\Domain\Filter_Pairs
Product_Category_Filter_Pair{}
This class describes the product category filter pair.
Хуков нет.
Использование
$Product_Category_Filter_Pair = new Product_Category_Filter_Pair(); // use class methods
Методы
- public get_filtered_content_type()
- public get_filtering_taxonomy()
Код Product_Category_Filter_Pair{} 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'; } }