{"id":2472,"date":"2018-04-16T14:37:28","date_gmt":"2018-04-16T21:37:28","guid":{"rendered":"https:\/\/www.elegantthemes.com\/documentation\/?p=2472"},"modified":"2022-02-28T19:23:43","modified_gmt":"2022-03-01T02:23:43","slug":"how-to-create-a-divi-builder-module","status":"publish","type":"post","link":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/","title":{"rendered":"How To Create A Divi Builder Module"},"content":{"rendered":"<blockquote><p><strong>Note:<\/strong> This tutorial series is intended for advanced users. At least a basic understanding of coding in PHP and JavaScript is required.<\/p><\/blockquote>\n<h2 id=\"customdivibuildermodules\">Custom Divi Builder Modules<\/h2>\n<p>Divi Builder modules consist of PHP, JavaScript, HTML, &amp; CSS code. Each module is defined using a PHP class. The class defines all of the module&#8217;s settings and is responsible for rendering the module&#8217;s HTML output on the frontend. Additionally, each module has a <a href=\"https:\/\/reactjs.org\">ReactJS<\/a> component class (in JavaScript) that handles rendering the module inside of the Divi Builder. In this tutorial, you&#8217;ll learn how to create a custom header module. The module will be fully functional in the builder, both on the frontend and on the backend.<\/p>\n<p>Custom Divi Builder modules must be implemented within a theme, child-theme, or Divi Extension. In this tutorial we\u2019re going to implement a custom module in a Divi Extension. If you haven&#8217;t already done so, go ahead and <a href=\"https:\/\/www.elegantthemes.com\/documentation\/developers\/create-divi-extension\/\">create a Divi Extension<\/a>.<\/p>\n<h2 id=\"moduledefinition\">Module Definition<\/h2>\n<p>Divi Builder modules are defined using a PHP class. Look inside your extension&#8217;s directory and find the example module located in <code style=\"background: #f6f8fa; padding: 2px 4px;\">includes\/modules<\/code>. We&#8217;ll use it as a starting point to create a custom header module. First, let\u2019s rename the <code style=\"background: #f6f8fa; padding: 2px 4px;\">HelloWorld<\/code> directory to <code style=\"background: #f6f8fa; padding: 2px 4px;\">SimpleHeader<\/code>. Next, rename <code style=\"background: #f6f8fa; padding: 2px 4px;\">HelloWorld.php<\/code> to <code style=\"background: #f6f8fa; padding: 2px 4px;\">SimpleHeader.php<\/code>, open it, and then edit it as shown below:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ayubadiputra\/8f14fddf9b11832b1b815bb53511da5a.js\"><\/script><\/p>\n<p>Our module will include just a few basic settings that can be controlled from within the Divi Builder: heading, content, and background. Module settings are defined in the <code style=\"background: #f6f8fa; padding: 2px 4px;\">get_fields()<\/code> method. Let&#8217;s go ahead and do that now:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ayubadiputra\/62e8da4948e3bbfe28b08ae40035ad82.js\"><\/script><\/p>\n<p>You probably noticed that the background field is missing. We excluded it from the fields array because it\u2019s one of several advanced fields that are added automatically by the builder to all modules unless they specifically opt-out. You\u2019ll learn more about advanced fields a bit later in this tutorial series.<\/p>\n<p>Our module definition is almost complete. We just need to finish the implementation of the <code style=\"background: #f6f8fa; padding: 2px 4px;\">render()<\/code> method so that it will generate the module&#8217;s HTML output based on its <code style=\"background: #f6f8fa; padding: 2px 4px;\">props<\/code>. Ready? Let&#8217;s do it!<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ayubadiputra\/89f77ad64be811548d565062267daf5e.js\"><\/script><\/p>\n<h2 id=\"reactcomponent\">React Component<\/h2>\n<p>In order for our module to be available and fully functional inside the Divi Builder we must create a <a href=\"https:\/\/reactjs.org\/docs\/react-component.html\">React Component<\/a> class that handles the rendering of our module based on its <code style=\"background: #f6f8fa; padding: 2px 4px;\">props<\/code>. Look in your module\u2019s directory for the file named <code style=\"background: #f6f8fa; padding: 2px 4px;\">HelloWorld.jsx<\/code>.<\/p>\n<blockquote><p><strong>Note:<\/strong> <a href=\"https:\/\/reactjs.org\/docs\/introducing-jsx.html\">JSX<\/a> is a syntax extension to JavaScript used in React to describe what the UI should look like.<\/p><\/blockquote>\n<p>Let\u2019s rename <code style=\"background: #f6f8fa; padding: 2px 4px;\">HelloWorld.jsx<\/code> to <code style=\"background: #f6f8fa; padding: 2px 4px;\">SimpleHeader.jsx<\/code>, open it, and then edit it as follows:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/lots0logs\/760a4f4c30beebb6dd007bf8480c89fc.js?ts=4\"><\/script><\/p>\n<p>Next, let\u2019s update the import and export statements in <code>includes\/modules\/index.js<\/code>:<\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/52e37ca315a2427eca4b7514ab924f3c.js?ts=4\"><\/script><\/div>\n<p>Now, let\u2019s edit the <code style=\"background: #f6f8fa; padding: 2px 4px;\">render()<\/code> method and make it produce the same output that we defined in our PHP <code style=\"background: #f6f8fa; padding: 2px 4px;\">render()<\/code> method.<\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/6d9682c350782965ce1080519e5cc823.js?ts=4\"><\/script><\/div>\n<p>There are two things in our <code style=\"background: #f6f8fa; padding: 2px 4px;\">render()<\/code> method to take note of. First, note how the module\u2019s <code style=\"background: #f6f8fa; padding: 2px 4px;\">content<\/code> setting is handled. Module settings defined with field type <code style=\"background: #f6f8fa; padding: 2px 4px;\">tiny_mce<\/code> (like the <code style=\"background: #f6f8fa; padding: 2px 4px;\">content<\/code> setting in our module) require the use of a special React Component. The builder sets up the required component and then passes it down to the module as the setting value. Since the value is not a string or number and is actually a React Component, we need to use it as such in our JSX markup.<\/p>\n<p>Also note how we wrapped our module\u2019s output in a <a href=\"https:\/\/reactjs.org\/docs\/react-api.html#reactfragment\"><code style=\"background: #f6f8fa; padding: 2px 4px;\">Fragment<\/code><\/a> component. Fragments allow you to return multiple top-level elements from your <code style=\"background: #f6f8fa; padding: 2px 4px;\">render()<\/code> method without actually adding an extra element to the page itself.<\/p>\n<h2 id=\"cssstyles\">CSS Styles<\/h2>\n<p>Styles for our module can be defined using the <code style=\"background: #f6f8fa; padding: 2px 4px;\">style.css<\/code> file in its directory. Our custom header module is pretty basic so it doesn\u2019t require much styling. Though we should add some bottom margin for the heading so that there is some space between it and the content below it. Later, in our <a href=\"https:\/\/www.elegantthemes.com\/documentation\/divi\/?s=Divi+Builder+Module+In-Depth\">Divi Builder Module In-Depth<\/a> tutorial series you\u2019ll learn how to make margin and padding for the heading (or any element inside your module\u2019s output) configurable from within the module\u2019s settings.<\/p>\n<p>For now, let\u2019s go ahead and update our module\u2019s <code style=\"background: #f6f8fa; padding: 2px 4px;\">style.css<\/code>:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/lots0logs\/40a1ff9e42d8659a549b78cb72ac0868.js?ts=4\"><\/script><\/p>\n<h2 id=\"testingduringdevelopment\">Testing During Development<\/h2>\n<p>Before we can test our custom module in the Divi Builder we need to compile the JSX code into regular JavaScript. To do that, simply run the following command inside your plugin\u2019s directory:<\/p>\n<pre style=\"margin-bottom: 40px;\"><code style=\"background: #f6f8fa; padding: 2px 4px;\">yarn start\r\n<\/code><\/pre>\n<p>Provided there are no syntax errors in your code you will see the following output:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg\" alt=\"\" \/><\/p>\n<p>Now you can launch the Divi Builder and check out your Simple Header module!<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p><strong>Note:<\/strong> You must keep the terminal window with <code>yarn start<\/code> running open while you are developing your module. As you make changes to the files, the JavaScript and CSS will be recompiled automatically.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to create a custom module for the Divi Builder.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23],"tags":[],"class_list":["post-2472","post","type-post","status-publish","format-standard","hentry","category-developers","category-divi-module"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Elegant Themes Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create A Divi Builder Module - Elegant Themes Documentation\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a custom module for the Divi Builder.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/\" \/>\n<meta property=\"og:site_name\" content=\"Elegant Themes Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-16T21:37:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-01T02:23:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg\" \/>\n<meta name=\"author\" content=\"Dustin Falgout\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dustin Falgout\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/\"},\"author\":{\"name\":\"Dustin Falgout\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\"},\"headline\":\"How To Create A Divi Builder Module\",\"datePublished\":\"2018-04-16T21:37:28+00:00\",\"dateModified\":\"2022-03-01T02:23:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/\"},\"wordCount\":767,\"image\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg\",\"articleSection\":[\"Developer Documentation\",\"Divi Module: In-Depth\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/\",\"name\":\"How To Create A Divi Builder Module - Elegant Themes Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg\",\"datePublished\":\"2018-04-16T21:37:28+00:00\",\"dateModified\":\"2022-03-01T02:23:43+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/#primaryimage\",\"url\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg\",\"contentUrl\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/how-to-create-a-divi-builder-module\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create A Divi Builder Module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\",\"name\":\"Elegant Themes Documentation\",\"description\":\"Just another WordPress site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\",\"name\":\"Dustin Falgout\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g\",\"caption\":\"Dustin Falgout\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Elegant Themes Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/","og_locale":"en_US","og_type":"article","og_title":"How To Create A Divi Builder Module - Elegant Themes Documentation","og_description":"Learn how to create a custom module for the Divi Builder.","og_url":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/","og_site_name":"Elegant Themes Documentation","article_published_time":"2018-04-16T21:37:28+00:00","article_modified_time":"2022-03-01T02:23:43+00:00","og_image":[{"url":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg","type":"","width":"","height":""}],"author":"Dustin Falgout","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dustin Falgout","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/#article","isPartOf":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/"},"author":{"name":"Dustin Falgout","@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b"},"headline":"How To Create A Divi Builder Module","datePublished":"2018-04-16T21:37:28+00:00","dateModified":"2022-03-01T02:23:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/"},"wordCount":767,"image":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/#primaryimage"},"thumbnailUrl":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg","articleSection":["Developer Documentation","Divi Module: In-Depth"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/","url":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/","name":"How To Create A Divi Builder Module - Elegant Themes Documentation","isPartOf":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/#primaryimage"},"image":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/#primaryimage"},"thumbnailUrl":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg","datePublished":"2018-04-16T21:37:28+00:00","dateModified":"2022-03-01T02:23:43+00:00","author":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b"},"breadcrumb":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/#primaryimage","url":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg","contentUrl":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_D388129B8D81F0C276F64DF194CFF2EBCA3E088F1B26B64D4471D27CD2F204F8_1520129475342_command-start.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/divi-module\/how-to-create-a-divi-builder-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.elegantthemes.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"How To Create A Divi Builder Module"}]},{"@type":"WebSite","@id":"https:\/\/www.elegantthemes.com\/documentation\/#website","url":"https:\/\/www.elegantthemes.com\/documentation\/","name":"Elegant Themes Documentation","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.elegantthemes.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b","name":"Dustin Falgout","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g","caption":"Dustin Falgout"}}]}},"_links":{"self":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/2472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/comments?post=2472"}],"version-history":[{"count":25,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/2472\/revisions"}],"predecessor-version":[{"id":7345,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/2472\/revisions\/7345"}],"wp:attachment":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/media?parent=2472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/categories?post=2472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/tags?post=2472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}