What developers can build on: hooks, shortcodes, blocks, REST routes and WP-CLI commands, taken from each plugin’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:
[drx_summary]Your 40 to 80 word summary.[/drx_summary]
Comparison table: the first line holds the column headings, and cells are separated by a vertical bar. A Markdown table pasted in works too.
[drx_comparison caption="Plans compared"] Feature | Basic | Pro Storage | 10 GB | 100 GB Support | Email | Phone and email [/drx_comparison]
Breadcrumb, built automatically:
[drx_breadcrumb]
Breadcrumb, your own trail (text | address, one step per line; leave the address off the last step):
[drx_breadcrumb] Home | / Guides | /guides/ This guide [/drx_breadcrumb]
In a theme template: <?php echo do_shortcode( '[drx_breadcrumb]' ); ?>
The older names [geo_summary], [geo_comparison] and [geo_breadcrumb] still work, including the JSON form of the table and breadcrumb.
For developers
doctorx_content_blocks_summary_wordsfilter: change the 40 to 80 word range, e.g.array( 'min' => 30, 'max' => 60 ).doctorx_content_blocks_breadcrumb_itemsfilter: change the trail before it is drawn. Receives the list of steps (each withlabelandurl) and'auto'or'custom'.doctorx_content_blocks_breadcrumb_schemafilter: return false to leave out the schema.org markup, for example when an SEO plugin already describes your breadcrumbs.doctorx_content_blocks_load_stylesfilter: return false to style the blocks entirely from your theme.- CSS classes:
drx-summary,drx-comparison(withdrx-comparison__tableinside),drx-breadcrumb.