For developers

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_words filter: change the 40 to 80 word range, e.g. array( 'min' => 30, 'max' => 60 ).
  • doctorx_content_blocks_breadcrumb_items filter: change the trail before it is drawn. Receives the list of steps (each with label and url) and 'auto' or 'custom'.
  • doctorx_content_blocks_breadcrumb_schema filter: return false to leave out the schema.org markup, for example when an SEO plugin already describes your breadcrumbs.
  • doctorx_content_blocks_load_styles filter: return false to style the blocks entirely from your theme.
  • CSS classes: drx-summary, drx-comparison (with drx-comparison__table inside), drx-breadcrumb.
You're the Developer. Your changes are private to you. Switch to Customer or Owner · What to try · Start over · Sign outDeveloper · Start overGet DoctorX AI-Friendly Content BlocksGet it