1. Home
  2. Developer Docs
  3. Hooks in schema & structured data for wp

Hooks in schema & structured data for wp

If you want to modify the output of the specific schema type then by using the below filters you can modify those specific schema type on your website.

Here is the list of our filters which you can use and modify the output

  • saswp_modify_organization_output
  • saswp_modify_course_schema_output
  • saswp_modify_blogposting_schema_output
  • saswp_modify_audio_object_schema_output
  • saswp_modify_event_schema_output
  • saswp_modify_software_application_schema_output
  • saswp_modify_webpage_schema_output
  • saswp_modify_article_schema_output
  • saswp_modify_tech_article_schema_output
  • saswp_modify_recipe_schema_output
  • saswp_modify_qanda_schema_output
  • saswp_modify_product_schema_output
  • saswp_modify_news_article_schema_output
  • saswp_modify_service_schema_output
  • saswp_modify_review_schema_output
  • saswp_modify_video_object_schema_output
  • saswp_modify_local_business_schema_output
  • saswp_modify_schema_output
  • saswp_modify_breadcrumb_output
  • saswp_modify_website_output
  • saswp_modify_archive_output
  • saswp_modify_author_output
  • saswp_modify_about_page_output
  • saswp_modify_contact_page_output
  • saswp_modify_sitenavigation_output

How to use -:

Add the following example code to your themes/function.php,

To add saswp_modify_recipe_schema_output hook,

function recipe_callback( $recipe ){

// Maybe modify $recipe in some way.

return $example;

}

add_filter( ‘saswp_modify_recipe_schema_output’, ‘recipe_callback’ );

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions or do you want us to create compatibility for any other schema type which isn’t listed in our plugin then you can request us we will surely implement it as soon as possible.

Just contact us here and we are always available for you.


Updated on April 6, 2023

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.


    Was this article helpful?

    Related Articles