aioseo_schema_output

Purpose

This filter can be used to filter the JSON schema that All in One SEO outputs.

Arguments (1)

  1. $graphs (array) – The graphs with their properties as multidimensional arrays.

Example code snippets

The code snippet below is just an example of how this filter can be used. In the example below, the BreadcrumbList graph is removed from the output.

The code snippet below is an example of how to remove the Article schema for Posts:

The code snippet below shows how the datePublished and dateModified properties can removed from the Article schema for Posts:

The code snippet below shows how the author of an article can be removed for Posts:

Implementation

Need help using our code snippets? Checkout our documentation on “How do I use your API code examples?“.

We recommend using the WPCode plugin for safe and secure implementation. WPCode performs multiple sanitization tests before activating the snippets, ensuring the safety of your website.