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;
		}

Changelog

Changelog
Version Description
1.8.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.