{"id":10116,"date":"2022-07-12T19:53:17","date_gmt":"2022-07-13T02:53:17","guid":{"rendered":"https:\/\/www.blocksylaunch.click\/documentation\/?p=10116"},"modified":"2022-07-13T06:16:26","modified_gmt":"2022-07-13T13:16:26","slug":"divi-builder-javascript-hooks","status":"publish","type":"post","link":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/","title":{"rendered":"Divi Builder Javascript Hooks"},"content":{"rendered":"<h2 id=\"layout\">Layout<\/h2>\n<h3 id=\"module_type.css.selector\">{module_type}.css.selector<\/h3>\n<p>Filters module selector on the rendered layout. This filter is fired <strong>before selector processing<\/strong>. Third-party extensions may use this filter to modify module CSS selector such as removing builder selector prefix, append child element class, etc.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:<\/strong> 4.0.0<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th><span style=\"font-weight: 400;\">Param<\/span><\/th>\n<th><span style=\"font-weight: 400;\">Type<\/span><\/th>\n<th><span style=\"font-weight: 400;\">Description<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>selector<\/td>\n<td><code>string<\/code><\/td>\n<td>Module selector.<\/td>\n<\/tr>\n<tr>\n<td>type<\/td>\n<td><code>string<\/code><\/td>\n<td>Module slug.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Examples:<\/strong><\/p>\n<pre>\r\n\/**\r\n * Filters Hello World module selector after builder content is loaded.\r\n *\/\r\ndocument.addEventListener('ETDOMContentLoaded', function() {\r\n    \/\/ Module type: smpl_hello_world.\r\n    wp.hooks.addFilter('smpl.hello.world.css.selector', 'smpl-setting-update', function(selector){\r\n        \/\/ Processing Hello World module selector here ...\r\n        return selector;\r\n    });\r\n});\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h3 id=\"module_type.processed.css.selector\">{module_type}.processed.css.selector<\/h3>\n<p>Filters processed module selector on the rendered layout. This filter is fired <strong>after selector processing<\/strong>. Third-party extensions may use this filter to modify module CSS selector such as removing builder selector prefix, append child element class, etc.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:<\/strong> 4.17.6<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th><span style=\"font-weight: 400;\">Param<\/span><\/th>\n<th><span style=\"font-weight: 400;\">Type<\/span><\/th>\n<th><span style=\"font-weight: 400;\">Description<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>selector<\/td>\n<td><code>string<\/code><\/td>\n<td>Processed module selector.<\/td>\n<\/tr>\n<tr>\n<td>type<\/td>\n<td><code>string<\/code><\/td>\n<td>Module slug.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Examples:<\/strong><\/p>\n<pre>\r\n\/**\r\n * Filters Hello World module selector after builder content is loaded.\r\n *\/\r\ndocument.addEventListener('ETDOMContentLoaded', function() {\r\n    \/\/ Module type: smpl_hello_world.\r\n    wp.hooks.addFilter('smpl.hello.world.processed.css.selector', 'smpl-setting-update', function(selector){\r\n        \/\/ Processing Hello World module selector here ...\r\n        return selector;\r\n    });\r\n});\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Learn about the Javascript hooks that are available in Divi Builder features.<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-10116","post","type-post","status-publish","format-standard","hentry","category-developers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Elegant Themes Documentation<\/title>\n<meta name=\"description\" content=\"Learn about the Javascript hooks that are available in Divi Builder features.\" \/>\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.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Divi Builder Javascript Hooks - Elegant Themes Documentation\" \/>\n<meta property=\"og:description\" content=\"Learn about the Javascript hooks that are available in Divi Builder features.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/\" \/>\n<meta property=\"og:site_name\" content=\"Elegant Themes Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-13T02:53:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-13T13:16:26+00:00\" \/>\n<meta name=\"author\" content=\"Ayub Adiputra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ayub Adiputra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\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-builder-javascript-hooks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-builder-javascript-hooks\\\/\"},\"author\":{\"name\":\"Ayub Adiputra\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/507067c0208423af93c1e3e1bc9edf30\"},\"headline\":\"Divi Builder Javascript Hooks\",\"datePublished\":\"2022-07-13T02:53:17+00:00\",\"dateModified\":\"2022-07-13T13:16:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-builder-javascript-hooks\\\/\"},\"wordCount\":115,\"articleSection\":[\"Developer Documentation\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-builder-javascript-hooks\\\/\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-builder-javascript-hooks\\\/\",\"name\":\"Divi Builder Javascript Hooks - Elegant Themes Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\"},\"datePublished\":\"2022-07-13T02:53:17+00:00\",\"dateModified\":\"2022-07-13T13:16:26+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/507067c0208423af93c1e3e1bc9edf30\"},\"description\":\"Learn about the Javascript hooks that are available in Divi Builder features.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-builder-javascript-hooks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-builder-javascript-hooks\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-builder-javascript-hooks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Divi Builder Javascript Hooks\"}]},{\"@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\\\/507067c0208423af93c1e3e1bc9edf30\",\"name\":\"Ayub Adiputra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3862834169b38221ac7b75f03b42f6ac59e950b593f10bd79a0dc44e15c2b29f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3862834169b38221ac7b75f03b42f6ac59e950b593f10bd79a0dc44e15c2b29f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3862834169b38221ac7b75f03b42f6ac59e950b593f10bd79a0dc44e15c2b29f?s=96&d=mm&r=g\",\"caption\":\"Ayub Adiputra\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Elegant Themes Documentation","description":"Learn about the Javascript hooks that are available in Divi Builder features.","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.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/","og_locale":"en_US","og_type":"article","og_title":"Divi Builder Javascript Hooks - Elegant Themes Documentation","og_description":"Learn about the Javascript hooks that are available in Divi Builder features.","og_url":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/","og_site_name":"Elegant Themes Documentation","article_published_time":"2022-07-13T02:53:17+00:00","article_modified_time":"2022-07-13T13:16:26+00:00","author":"Ayub Adiputra","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ayub Adiputra","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/#article","isPartOf":{"@id":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/"},"author":{"name":"Ayub Adiputra","@id":"https:\/\/www.blocksylaunch.click\/documentation\/#\/schema\/person\/507067c0208423af93c1e3e1bc9edf30"},"headline":"Divi Builder Javascript Hooks","datePublished":"2022-07-13T02:53:17+00:00","dateModified":"2022-07-13T13:16:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/"},"wordCount":115,"articleSection":["Developer Documentation"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/","url":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/","name":"Divi Builder Javascript Hooks - Elegant Themes Documentation","isPartOf":{"@id":"https:\/\/www.blocksylaunch.click\/documentation\/#website"},"datePublished":"2022-07-13T02:53:17+00:00","dateModified":"2022-07-13T13:16:26+00:00","author":{"@id":"https:\/\/www.blocksylaunch.click\/documentation\/#\/schema\/person\/507067c0208423af93c1e3e1bc9edf30"},"description":"Learn about the Javascript hooks that are available in Divi Builder features.","breadcrumb":{"@id":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.blocksylaunch.click\/documentation\/developers\/divi-builder-javascript-hooks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.blocksylaunch.click\/documentation\/"},{"@type":"ListItem","position":2,"name":"Divi Builder Javascript Hooks"}]},{"@type":"WebSite","@id":"https:\/\/www.blocksylaunch.click\/documentation\/#website","url":"https:\/\/www.blocksylaunch.click\/documentation\/","name":"Elegant Themes Documentation","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.blocksylaunch.click\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.blocksylaunch.click\/documentation\/#\/schema\/person\/507067c0208423af93c1e3e1bc9edf30","name":"Ayub Adiputra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3862834169b38221ac7b75f03b42f6ac59e950b593f10bd79a0dc44e15c2b29f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3862834169b38221ac7b75f03b42f6ac59e950b593f10bd79a0dc44e15c2b29f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3862834169b38221ac7b75f03b42f6ac59e950b593f10bd79a0dc44e15c2b29f?s=96&d=mm&r=g","caption":"Ayub Adiputra"}}]}},"_links":{"self":[{"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts\/10116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/comments?post=10116"}],"version-history":[{"count":6,"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts\/10116\/revisions"}],"predecessor-version":[{"id":10127,"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts\/10116\/revisions\/10127"}],"wp:attachment":[{"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/media?parent=10116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/categories?post=10116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/tags?post=10116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}