Add new fields for Schema Output
-
Hi, does it possible to add new fields (like brand, review and other) for Schema Output? I use code in function.php to take data from product attribute.
add_filter( 'the_seo_framework_generated_description', function( $description, $args ) { if ( null === $args && is_product() ) { global $product; $brand = $product->get_attribute( 'brand' ); } return $brand; }, 10, 2 );
But I don’t know how to write the right filter
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add new fields for Schema Output’ is closed to new replies.