Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Filter gdrts_rich_snippet_microdata_build_$type is used to filter generated rich snippet before it is rendered and included in the content. Before it is used, the variable $type has to be replaced with the code name of the snippet. This filter has 2 arguments:

  • $build: array with the generated snippet. This array structure is different for each snippet type.
  • $snippet: the object generating the snippet.
Rate this reference

You are not allowed to rate this post.

Leave a Comment