Astra_Woocommerce::remove_body_schema( String $schema )
Remove body schema when using WooCommerce template.
Description
WooCommerce adds it’s own product schema hence schema data from Astra should be disabled here.
Parameters
- $schema
-
(String) (Required) Schema markup.
Return
(String)
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function remove_body_schema( $schema ) { if ( is_woocommerce() ) { $schema = ''; } return $schema; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.8.0 | Introduced. |