{"id":16,"date":"2026-10-05T20:09:15","date_gmt":"2026-10-06T00:09:15","guid":{"rendered":"https:\/\/demo.doctorx.ca\/languages\/for-developers\/"},"modified":"2026-10-05T20:09:15","modified_gmt":"2026-10-06T00:09:15","slug":"for-developers","status":"publish","type":"page","link":"https:\/\/demo.doctorx.ca\/languages\/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 Languages<\/h2>\n\n\n\n<ul class=\"drx-dev-facts\"><li><strong>Shortcodes:<\/strong> <code>&#91;doctorx_languages_switcher&#93;<\/code><\/li><\/ul>\n\n\n\n<h3>For theme developers<\/h3>\n<ul>\n<li><code>&#91;doctorx_languages_switcher&#93;<\/code> or <code>&#91;doctorx_languages_switcher style=&quot;links&quot;&#93;<\/code> \u2014 the language picker.<\/li>\n<li><code>doctorx_languages_switcher()<\/code> \u2014 the same in a template.<\/li>\n<li><code>doctorx_languages_t( &#039;Text&#039; )<\/code> \u2014 translate a piece of theme text into the language of the page.<\/li>\n<li><code>doctorx_languages_current()<\/code> and <code>doctorx_languages_url( $url, $lang )<\/code> \u2014 the page&#039;s language and an address in another language.<\/li>\n<li>Mark any part of a page with <code>translate=&quot;no&quot;<\/code> or the class <code>notranslate<\/code> to keep it as written.<\/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 Languages Shortcodes: &#91;doctorx_languages_switcher&#93; For theme developers &#91;doctorx_languages_switcher&#93; or &#91;doctorx_languages_switcher style=&quot;links&quot;&#93; \u2014 the language picker. doctorx_languages_switcher() \u2014 the same in a template. doctorx_languages_t( &#039;Text&#039; ) \u2014 translate a piece [&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-16","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.doctorx.ca\/languages\/wp-json\/wp\/v2\/pages\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.doctorx.ca\/languages\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.doctorx.ca\/languages\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.doctorx.ca\/languages\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":2,"href":"https:\/\/demo.doctorx.ca\/languages\/wp-json\/wp\/v2\/pages\/16\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/demo.doctorx.ca\/languages\/wp-json\/wp\/v2\/pages\/16\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/demo.doctorx.ca\/languages\/wp-json\/wp\/v2\/media?parent=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}