Yoast\WP\SEO\Integrations\Third_Party
Woocommerce_Permalinks::filter_product_from_post_types() public Yoast 1.0
Filters the product post type from the post type.
{} Это метод класса: Woocommerce_Permalinks{}
Хуков нет.
Возвращает
Массив. The filtered post types.
Использование
$Woocommerce_Permalinks = new Woocommerce_Permalinks(); $Woocommerce_Permalinks->filter_product_from_post_types( $post_types );
- $post_types(массив) (обязательный)
- The post types to filter.
Код Woocommerce_Permalinks::filter_product_from_post_types() Woocommerce Permalinks::filter product from post types Yoast 15.6.2
public function filter_product_from_post_types( $post_types ) {
unset( $post_types['product'] );
return $post_types;
}