if ( ! function_exists( 'stellar_schema_condition' ) ) { /** * Checks if current page is meet the condition for schema markup. * * @param bool $condition The condition to check from Stellar. * * @return bool True if the condition is met, false otherwise. */ function stellar_schema_condition( bool $condition ): bool { // Add your conditions here. // Check if the current page is a WooCommerce archive. if ( is_archive() && function_exists( 'is_woocommerce' ) && is_woocommerce() ) { return true; } return $condition; }}add_filter( 'stellar_schema_condition', 'stellar_schema_condition' );
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.