{"id":19031111,"date":"2026-09-28T10:34:07","date_gmt":"2026-09-28T10:34:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/ditching-rm-disabling-default-json-ld-schema-when-injecting-custom-html-json\/"},"modified":"2026-09-28T10:34:07","modified_gmt":"2026-09-28T10:34:07","slug":"ditching-rm-disabling-default-json-ld-schema-when-injecting-custom-html-json","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/ditching-rm-disabling-default-json-ld-schema-when-injecting-custom-html-json\/","title":{"rendered":"Ditching RM &#8211; Disabling default JSON-LD schema when injecting custom HTML \/ JSON"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Subject:<\/strong> Disabling default JSON-LD schema when injecting custom HTML \/ JSON-LD<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Did not find any mentions first 4 pages of reviews regarding json-ld,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am building custom pages using custom HTML and custom JSON-LD scripts, and I want to disable the default Schema graph output generated by The SEO Framework to prevent duplicate markup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Is using the <code>the_seo_framework_schema_graph_data<\/code> filter with <code>__return_empty_array<\/code> the recommended way to disable JSON-LD programmatically, or is it better to disable it site-wide via <strong>SEO Settings \u2192 Schema.org Settings \u2192 General<\/strong>?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Appreciate any feedback!<\/p>\n","protected":false},"template":"","class_list":["post-19031111","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19031111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19031111\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19031111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}