{"id":1122,"date":"2019-06-25T07:35:25","date_gmt":"2019-06-25T07:35:25","guid":{"rendered":"http:\/\/structured-data-for-wp.com\/docs\/?post_type=ht_kb&#038;p=1122"},"modified":"2023-04-06T10:04:11","modified_gmt":"2023-04-06T10:04:11","slug":"hooks-in-schema-structured-data-for-wp","status":"publish","type":"ht_kb","link":"https:\/\/structured-data-for-wp.com\/docs\/article\/hooks-in-schema-structured-data-for-wp\/","title":{"rendered":"Hooks in schema &#038; structured data for wp"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p><strong>Here is the list of our filters which you can use and modify the output<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>  <strong> saswp_modify_organization_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_course_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_blogposting_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_audio_object_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_event_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_software_application_schema_output<\/strong><\/li>\n\n\n\n<li>   <strong>saswp_modify_webpage_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_article_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_tech_article_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_recipe_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_qanda_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_product_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_news_article_schema_output<\/strong><\/li>\n\n\n\n<li>   <strong>saswp_modify_service_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_review_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_video_object_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_local_business_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_schema_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_breadcrumb_output  <\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_website_output <\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_archive_output                                     <\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_author_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_about_page_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_contact_page_output<\/strong><\/li>\n\n\n\n<li><strong>   saswp_modify_sitenavigation_output<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">How to use -: <\/h3>\n\n\n\n<p>Add the following example code to your themes\/function.php,<\/p>\n\n\n\n<p>To add <strong>saswp_modify_recipe_schema_output<\/strong> hook,<\/p>\n\n\n\n<p class=\"has-text-align-center\">function recipe_callback( $recipe ){ <\/p>\n\n\n\n<p class=\"has-text-align-center\">                                 \/\/ Maybe modify $recipe in some way.<\/p>\n\n\n\n<p class=\"has-text-align-center\"> return $example; <\/p>\n\n\n\n<p class=\"has-text-align-center\">} <\/p>\n\n\n\n<p class=\"has-text-align-center\">         add_filter( &#8216;saswp_modify_recipe_schema_output&#8217;, &#8216;recipe_callback&#8217; );<\/p>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>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\u2019t listed in our plugin then you can request us we will surely implement it as soon as possible.<\/p>\n\n\n\n<p><strong>Just contact us&nbsp;<a href=\"http:\/\/structured-data-for-wp.com\/contact-us\/\">here<\/a>&nbsp;and we are always available for you.<\/strong><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 How to use -: Add the following&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[8],"ht-kb-tag":[],"class_list":["post-1122","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-developer-docs"],"_links":{"self":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/1122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/comments?post=1122"}],"version-history":[{"count":11,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/1122\/revisions"}],"predecessor-version":[{"id":4726,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/1122\/revisions\/4726"}],"wp:attachment":[{"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/media?parent=1122"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=1122"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/structured-data-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=1122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}