Ответы в темах

Просмотр 1 ответа (всего 1)
  • Hi,

    Sorry for replying in English, I’m one of the authors of the Remove Schema plugin.

    Based on the comment we’re going to add the code to remove product schema generated WooCommerce.

    Example code that you could use to remove the product schema:

    function remove_schema_woocommerce_product( $types ) {
    	if ( ( $index = array_search( 'product', $types ) ) !== false ) {
    		unset( $types[ $index ] );
    	}
    	return $types;
    }
    add_filter( 'woocommerce_structured_data_type_for_page', 'remove_schema_woocommerce_product' );
Просмотр 1 ответа (всего 1)