{"id":21,"date":"2026-10-05T20:09:17","date_gmt":"2026-10-06T00:09:17","guid":{"rendered":"https:\/\/demo.doctorx.ca\/blocks\/for-developers\/"},"modified":"2026-10-05T20:09:17","modified_gmt":"2026-10-06T00:09:17","slug":"for-developers","status":"publish","type":"page","link":"https:\/\/demo.doctorx.ca\/blocks\/for-developers\/","title":{"rendered":"For developers"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">What developers can build on: hooks, shortcodes, blocks, REST routes and WP-CLI commands, taken from each plugin&#8217;s own readme and from what this site has registered.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DoctorX AI-Friendly Content Blocks<\/h2>\n\n\n\n<ul class=\"drx-dev-facts\"><li><strong>Blocks:<\/strong> <code>doctorx\/summary<\/code>, <code>doctorx\/comparison-table<\/code>, <code>doctorx\/breadcrumb<\/code><\/li><\/ul>\n\n\n\n<h3>Shortcodes<\/h3>\n<p>Summary:<\/p>\n<p><code>&#91;drx_summary&#93;Your 40 to 80 word summary.&#91;\/drx_summary&#93;<\/code><\/p>\n<p>Comparison table: the first line holds the column headings, and cells are separated by a vertical bar. A Markdown table pasted in works too.<\/p>\n<p><code>&#91;drx_comparison caption=&quot;Plans compared&quot;&#93; Feature | Basic | Pro Storage | 10 GB | 100 GB Support | Email | Phone and email &#91;\/drx_comparison&#93;<\/code><\/p>\n<p>Breadcrumb, built automatically:<\/p>\n<p><code>&#91;drx_breadcrumb&#93;<\/code><\/p>\n<p>Breadcrumb, your own trail (text | address, one step per line; leave the address off the last step):<\/p>\n<p><code>&#91;drx_breadcrumb&#93; Home | \/ Guides | \/guides\/ This guide &#91;\/drx_breadcrumb&#93;<\/code><\/p>\n<p>In a theme template: <code>&lt;?php echo do_shortcode( &#039;&#91;drx_breadcrumb&#93;&#039; ); ?&gt;<\/code><\/p>\n<p>The older names &#91;geo_summary&#93;, &#91;geo_comparison&#93; and &#91;geo_breadcrumb&#93; still work, including the JSON form of the table and breadcrumb.<\/p>\n<h3>For developers<\/h3>\n<ul>\n<li><code>doctorx_content_blocks_summary_words<\/code> filter: change the 40 to 80 word range, e.g. <code>array( &#039;min&#039; =&gt; 30, &#039;max&#039; =&gt; 60 )<\/code>.<\/li>\n<li><code>doctorx_content_blocks_breadcrumb_items<\/code> filter: change the trail before it is drawn. Receives the list of steps (each with <code>label<\/code> and <code>url<\/code>) and <code>&#039;auto&#039;<\/code> or <code>&#039;custom&#039;<\/code>.<\/li>\n<li><code>doctorx_content_blocks_breadcrumb_schema<\/code> filter: return false to leave out the schema.org markup, for example when an SEO plugin already describes your breadcrumbs.<\/li>\n<li><code>doctorx_content_blocks_load_styles<\/code> filter: return false to style the blocks entirely from your theme.<\/li>\n<li>CSS classes: <code>drx-summary<\/code>, <code>drx-comparison<\/code> (with <code>drx-comparison__table<\/code> inside), <code>drx-breadcrumb<\/code>.<\/li>\n<\/ul>\n\n\n","protected":false},"excerpt":{"rendered":"<p>What developers can build on: hooks, shortcodes, blocks, REST routes and WP-CLI commands, taken from each plugin&#8217;s own readme and from what this site has registered. DoctorX AI-Friendly Content Blocks Blocks: doctorx\/summary, doctorx\/comparison-table, doctorx\/breadcrumb Shortcodes Summary: &#91;drx_summary&#93;Your 40 to 80 word summary.&#91;\/drx_summary&#93; Comparison table: the first line holds the column headings, and cells are separated [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-21","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.doctorx.ca\/blocks\/wp-json\/wp\/v2\/pages\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.doctorx.ca\/blocks\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.doctorx.ca\/blocks\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.doctorx.ca\/blocks\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":2,"href":"https:\/\/demo.doctorx.ca\/blocks\/wp-json\/wp\/v2\/pages\/21\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/demo.doctorx.ca\/blocks\/wp-json\/wp\/v2\/pages\/21\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/demo.doctorx.ca\/blocks\/wp-json\/wp\/v2\/media?parent=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}