Using the Yoast Schema API
-
Hi,
I am trying to add some information to the schema markup on our website. However, I am not clear on how to do that with the API docs. For example, if I wanted to add the foundingDate, what would that look like using the Yoast API?
I thought this would work:
add_filter( 'wpseo_schema_organization', function($data) { $data['foundingDate'] = '1992'; return $data; });
But it’s not working for me.
- This topic was modified 5 years, 4 months ago by .
- This topic was modified 5 years, 4 months ago by .
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using the Yoast Schema API’ is closed to new replies.