{"id":34,"date":"2026-10-05T20:09:06","date_gmt":"2026-10-06T00:09:06","guid":{"rendered":"https:\/\/demo.doctorx.ca\/samples\/for-developers\/"},"modified":"2026-10-05T20:09:06","modified_gmt":"2026-10-06T00:09:06","slug":"for-developers","status":"publish","type":"page","link":"https:\/\/demo.doctorx.ca\/samples\/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 Free Sample Requests<\/h2>\n\n\n\n<ul class=\"drx-dev-facts\"><li><strong>Shortcodes:<\/strong> <code>&#91;drx_samples_form&#93;<\/code><\/li><\/ul>\n\n\n\n<h3>Can a developer supply the swatches?<\/h3>\n<p>Yes. The <code>drx_samples_fabrics<\/code> filter receives the list from Media \u2192 Swatches; return your own list of items with <code>id<\/code>, <code>name<\/code> and optionally <code>collection<\/code>, <code>color<\/code> (#rrggbb), <code>image_id<\/code> or <code>image_url<\/code>. The <code>drx_samples_shop_email<\/code> and <code>drx_samples_customer_email<\/code> filters change the emails, and the <code>drx_samples_request_received<\/code> action runs after each request is saved.<\/p>\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 Free Sample Requests Shortcodes: &#91;drx_samples_form&#93; Can a developer supply the swatches? Yes. The drx_samples_fabrics filter receives the list from Media \u2192 Swatches; return your own list of items [&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-34","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.doctorx.ca\/samples\/wp-json\/wp\/v2\/pages\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.doctorx.ca\/samples\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.doctorx.ca\/samples\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.doctorx.ca\/samples\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":2,"href":"https:\/\/demo.doctorx.ca\/samples\/wp-json\/wp\/v2\/pages\/34\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/demo.doctorx.ca\/samples\/wp-json\/wp\/v2\/pages\/34\/revisions\/40"}],"wp:attachment":[{"href":"https:\/\/demo.doctorx.ca\/samples\/wp-json\/wp\/v2\/media?parent=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}