{"id":2515,"date":"2018-04-18T19:37:51","date_gmt":"2018-04-19T02:37:51","guid":{"rendered":"https:\/\/blocksylaunch.click\/documentation\/?p=2515"},"modified":"2018-04-19T18:03:33","modified_gmt":"2018-04-20T01:03:33","slug":"advanced-field-types-for-module-settings","status":"publish","type":"post","link":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/","title":{"rendered":"Advanced Field Types For Module Settings"},"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<p>Advanced fields are added automatically to all modules that are compatible with the latest version of the Divi Builder unless they specifically opt-out. Most advanced fields are configurable. Configuration for advanced fields can be defined in the <code>get_advanced_fields_config()<\/code> method of the module\u2019s PHP class. To opt-out of an advanced field, simply set its key in the array to <code>false<\/code>.<\/p>\n<h2 id=\"background-background\">Background <em>(background)<\/em><\/h2>\n<p>The background field allows users to set the module\u2019s background color, gradient, image, and\/or video.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png\" alt=\"\" \/><\/p>\n<p><strong>Background Field Configuration<\/strong><\/p>\n<ul>\n<li><strong>css<\/strong> <em>(array)<\/em> \u2014 CSS style configuration\n<ul>\n<li><strong>important<\/strong> <em>(bool)<\/em> \u2014 Whether or not styles should include <code>!important<\/code><\/li>\n<li><strong>main<\/strong> <em>(string)<\/em> \u2014 CSS selector for the module\u2019s main element<\/li>\n<\/ul>\n<\/li>\n<li><strong>options<\/strong> <em>(array) \u2014<\/em> Field definition parameter overrides\n<ul>\n<li><strong>module_setting_slug<\/strong> <em>(array)<\/em>\n<ul>\n<li><strong>parameter_1<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<li><strong>parameter_2<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>settings<\/strong> <em>(array)<\/em>\n<ul>\n<li><strong>disable_toggle<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t add a Background toggle group to the settings modal<\/li>\n<li><strong>tab_slug<\/strong> <em>(string)<\/em> \u2014 Modal tab slug<\/li>\n<li><strong>toggle_slug<\/strong> <em>(string)<\/em> \u2014 Modal tab settings group toggle slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>use_background_color<\/strong> <em>(bool|string)<\/em> \u2014 Show the background color tab<\/li>\n<li><strong>use_background_color_gradient<\/strong> <em>(bool|string)<\/em> \u2014 Show the background gradient tab<\/li>\n<li><strong>use_background_image<\/strong> <em>(bool|string)<\/em> \u2014 Show the background image tab<\/li>\n<li><strong>use_background_video<\/strong> <em>(bool|string)<\/em> \u2014 Show the background video tab<\/li>\n<\/ul>\n<p>The accepted values for <strong><code>use_background_color<\/code><\/strong>, <strong><code>use_background_color<\/code><\/strong>, <strong><code>use_background_gradient<\/code><\/strong>, <strong><code>use_background_image<\/code><\/strong>, and <strong><code>use_background_video<\/code><\/strong> are:<\/p>\n<ul>\n<li><code>true<\/code> \u2014 Display fields in the module settings and handle frontend markup<\/li>\n<li><code>false<\/code> \u2014 Do not display fields in the module settings and don\u2019t handle frontend markup<\/li>\n<li><code>fields_only<\/code> \u2014 Display fields in the module settings but don\u2019t handle frontend markup<\/li>\n<\/ul>\n<p><strong>Background Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/718ce4621e43a823f4b90586a5a3f85b.js?ts=4\"><\/script><\/div>\n<h2 id=\"borders-borders\">Borders <em>(borders)<\/em><\/h2>\n<p>The borders field allows users to set the module\u2019s border style, color, width, &amp; radius.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521781814491_border-field.png\" alt=\"\" \/><\/p>\n<p><strong>Border Field Configuration<\/strong><\/p>\n<p>Modules can apply borders not only to their outermost container element, but also to elements inside it. Each key in the configuration represents a separate element that will have adjustable border settings. The border field configuration for the module\u2019s outermost container element is set under the <code>default<\/code> key.<\/p>\n<p>While only parameters that are specific to borders fields are shown below, all of the <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a> are supported.<\/p>\n<ul>\n<li><strong>default<\/strong> <em>(array)<\/em>\n<ul>\n<li><strong>css<\/strong> <em>(array)<\/em> \u2014 CSS style configuration\n<ul>\n<li><strong>main<\/strong> <em>(array)<\/em> \u2014 CSS selectors for the module\u2019s main element\n<ul>\n<li><strong>border_radii<\/strong> <em>(string)<\/em> \u2014 CSS selector to be used for border radius styles<\/li>\n<li><strong>border_styles<\/strong> <em>(string)<\/em> \u2014 CSS selector to be used for border styles<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>defaults<\/strong> (array)\n<ul>\n<li><strong>border_radii<\/strong> <em>(string)<\/em> \u2014 Default value for border radius.<br \/>\nFormat: <code>link|top-left|top-right|bottom-right|bottom-left<\/code><br \/>\nExample: <code>on|3px|3px|3px|3px<\/code><\/li>\n<li><strong>border_styles<\/strong> <em>(array)<\/em> \u2014 Default values for border style properties\n<ul>\n<li><strong>width<\/strong> <em>(string)<\/em> \u2014 Default value for border width<\/li>\n<li><strong>color<\/strong> <em>(string)<\/em> \u2014 Default value for border color<\/li>\n<li><strong>style<\/strong> <em>(string)<\/em> \u2014 Default value for border style<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>label_prefix<\/strong> <em>(string)<\/em> \u2014 Text to display in front of the setting label <em>(localized)<\/em><\/li>\n<li><strong>suffix<\/strong> <em>(string)<\/em> \u2014 Suffix to append to the setting slug. Not required for default border field<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Borders Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/e26fb14adcc381aa90932c5621f420d6.js?ts=4\"><\/script><\/div>\n<h2 id=\"box-shadow-box_shadow\">Box Shadow <em>(box_shadow)<\/em><\/h2>\n<p>The box shadow field allows users to set the module\u2019s box shadow (obviously ? ).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521787196496_box-shadow-field.png\" alt=\"\" \/><\/p>\n<p><strong>Box Shadow Field Configuration<\/strong><\/p>\n<p>Modules can apply box shadows not only to their outermost container element, but also to elements inside it. Each key in the configuration represents a separate element that will have adjustable box shadow settings. The box shadow field configuration for the module\u2019s outermost container element is set under the <code>default<\/code> key.<\/p>\n<p>While only parameters that are specific to the box shadow field are shown below, all of the <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a> are supported.<\/p>\n<ul>\n<li><strong>default<\/strong> <em>(array)<\/em>\n<ul>\n<li><strong>css<\/strong> <em>(array)<\/em> \u2014 CSS style configuration\n<ul>\n<li><strong>custom_style<\/strong> <em>(bool)<\/em> \u2014 Use custom styles generation instead of the default<\/li>\n<li><strong>important<\/strong> <em>(bool)<\/em> \u2014 Whether or not styles should include <code>!important<\/code><\/li>\n<li><strong>main<\/strong> <em>(string)<\/em> \u2014 CSS selector for the module\u2019s main element<\/li>\n<li><strong>show_if<\/strong> <em>(array)<\/em> \u2014 Output styles if certain settings have certain values\n<ul>\n<li><strong>setting_slug<\/strong> <em>(mixed)<\/em> \u2014 Setting value<\/li>\n<\/ul>\n<\/li>\n<li><strong>show_if_not<\/strong> <em>(array)<\/em> \u2014 Output styles if certain settings <em>do not<\/em> have certain values\n<ul>\n<li><strong>setting_slug<\/strong> <em>(mixed)<\/em> \u2014 Setting value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>suffix<\/strong> <em>(string)<\/em> \u2014 Suffix to append to the setting slug. Not required for default field.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Box Shadow Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/1d234d66eac95470130ff6f457f6dc65.js?ts=4\"><\/script><\/div>\n<h2 id=\"button-button\">Button <em>(button)<\/em><\/h2>\n<p>The button field handles all of the various settings for customizing the styling of buttons included in a module on the frontend. Unlike the other advanced field types, the Button field is not added to a module unless the module specifically opts-in by including it in its advanced fields configuration.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521864267362_button-field.png\" alt=\"\" \/><\/p>\n<p><strong>Button Field Configuration<\/strong><\/p>\n<p>Modules can include one or more Divi styled buttons in their HTML output on the frontend. Each key in the configuration represents a separate button that can be customized in the module\u2019s settings. While only parameters that are specific to the button field are shown below, all of the <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a> are supported.<\/p>\n<ul>\n<li><strong>button_slug<\/strong> <em>(array)<\/em>\n<ul>\n<li><strong>box_shadow<\/strong> <em>(array)<\/em> \u2014 See <a href=\"#box-shadow-field-configuration\">Box Shadow Field<\/a> for array structure<\/li>\n<li><strong>css<\/strong> <em>(array)<\/em> \u2014 CSS style configuration\n<ul>\n<li><strong>alignment<\/strong> <em>(string)<\/em> \u2014 CSS selector for alignment styles<\/li>\n<li><strong>main<\/strong> <em>(string)<\/em> \u2014 CSS selector for the module\u2019s main element<\/li>\n<li><strong>plugin_main<\/strong> <em>(string)<\/em> \u2014 Like main above but applies only with the Divi Builder Plugin<\/li>\n<\/ul>\n<\/li>\n<li><strong>disable_toggle<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t add a Button toggle group to the settings modal<\/li>\n<li><strong>no_rel_attr<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t show field for customizing the button link\u2019s <code>rel<\/code> attribute<\/li>\n<li><strong>use_alignment<\/strong> <em>(bool)<\/em> \u2014 Show button alignment setting<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Button Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/8c9d37f1761533fc115666abef56014e.js?ts=4\"><\/script><\/div>\n<h2 id=\"filters-filters\">Filters <em>(filters)<\/em><\/h2>\n<p>The filters field allows users to control CSS filters for the module.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521869214026_filters-field.png\" alt=\"\" \/><\/p>\n<p><strong>Filters Field Configuration<\/strong><\/p>\n<ul>\n<li><strong>child_filters_target<\/strong> <em>(array)<\/em> \u2014 Child element filters field configuration\n<ul>\n<li><strong>depends_show_if<\/strong> <em>(mixed)<\/em> \u2014 Only show field when dependency has this value<\/li>\n<li><strong>tab_slug<\/strong> <em>(string)<\/em> \u2014 Modal tab slug<\/li>\n<li><strong>toggle_name<\/strong> <em>(string)<\/em> \u2014 Modal toggle group display name (localized)<\/li>\n<li><strong>toggle_slug<\/strong> <em>(string)<\/em> \u2014 Modal toggle group slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>tab_slug<\/strong> <em>(string)<\/em> \u2014 Modal tab slug<\/li>\n<li><strong>toggle_name<\/strong> <em>(string)<\/em> \u2014 Modal toggle group display name (localized)<\/li>\n<li><strong>toggle_slug<\/strong> <em>(string)<\/em> \u2014 Modal toggle group slug<\/li>\n<\/ul>\n<p><strong>Filters Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/7f31bff51431ec95827ab237b5fb5568.js?ts=4\"><\/script><\/div>\n<h2 id=\"fonts-fonts\">Fonts <em>(fonts)<\/em><\/h2>\n<p>The fonts field handles all the settings related to customizing the styles for text that appears in the module on the frontend.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521871661714_fonts-field.png\" alt=\"\" \/><\/p>\n<p><strong>Fonts Field Configuration<\/strong><\/p>\n<p>Modules allow text styles to be adjusted not only to their outermost container element, but also to elements inside it. Each key in the configuration represents a separate element that will have adjustable text style settings. The fonts field configuration for the module\u2019s outermost container element is set under the <code>module<\/code> key.<\/p>\n<p>While only parameters that are specific to the fonts field are shown below, all of the <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a> are supported.<\/p>\n<ul>\n<li><strong>module<\/strong> <em>(array)<\/em>\n<ul>\n<li><strong>defaults<\/strong> <em>(array)<\/em> \u2014 Default values for settings\n<ul>\n<li><strong>setting_slug_1<\/strong> <em>(mixed)<\/em> \u2014 Default value<\/li>\n<li><strong>setting_slug_2<\/strong> <em>(mixed)<\/em> \u2014 Default value<\/li>\n<\/ul>\n<\/li>\n<li><strong>depends_show_if<\/strong> <em>(mixed)<\/em> \u2014 Only show settings when dependency has this value<\/li>\n<li><strong>disable_toggle<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t add a toggle group to the settings modal<\/li>\n<li><strong>font<\/strong> <em>(array)<\/em> \u2014 Font family field definition (accepts <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a>)\n<ul>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>font_size<\/strong> <em>(array)<\/em> \u2014 Font size field definition (accepts <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a>)\n<ul>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>header_level<\/strong> <em>(array)<\/em> \u2014 Header level field definition (accepts <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a>)\n<ul>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>hide_font<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t show font family setting<\/li>\n<li><strong>hide_font_size<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t show font size setting<\/li>\n<li><strong>hide_letter_spacing<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t show letter spacing setting<\/li>\n<li><strong>hide_line_height<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t show line height setting<\/li>\n<li><strong>hide_text_color<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t show text color setting<\/li>\n<li><strong>hide_text_shadow<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t show text shadow setting<\/li>\n<li><strong>letter_spacing<\/strong> <em>(array)<\/em> \u2014 Letter spacing field definition (accepts <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a>)\n<ul>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>line_height<\/strong> <em>(array)<\/em> \u2014 Line height field definition (accepts <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a>)\n<ul>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<li><strong>text_color<\/strong> <em>(array)<\/em> \u2014 Text color field definition (accepts <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a>)\n<ul>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<\/ul>\n<\/li>\n<li><strong>text_shadow<\/strong> <em>(array)<\/em> \u2014 Text shadow field definition (accepts <a href=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/defining-module-settings#common-parameters\">common field parameters<\/a>)\n<ul>\n<li><strong>sub_toggle<\/strong> <em>(string)<\/em> \u2014 Modal sub-toggle group slug<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Fonts Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/33c73bc603237c8a2ea1beb8486910d4.js?ts=4\"><\/script><\/div>\n<h2 id=\"margin--padding-margin_padding\">Margin &amp; Padding <em>(<strong>margin_padding<\/strong>)<\/em><\/h2>\n<p>The margin &amp; padding field handles settings for the module\u2019s margin &amp; padding.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521877074211_margin-padding-field.png\" alt=\"\" \/><\/p>\n<p><strong>Margin &amp; Padding Field Configuration<\/strong><\/p>\n<ul>\n<li><strong>custom_margin<\/strong> <em>(array) \u2014<\/em> Margin field definition parameter overrides\n<ul>\n<li><strong>parameter_1<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<li><strong>parameter_2<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<\/ul>\n<\/li>\n<li><strong>custom_padding<\/strong> <em>(array) \u2014<\/em> Padding field definition parameter overrides\n<ul>\n<li><strong>parameter_1<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<li><strong>parameter_2<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<\/ul>\n<\/li>\n<li><strong>disable_toggle<\/strong> <em>(bool)<\/em> \u2014 Don\u2019t add a toggle group to the settings modal<\/li>\n<li><strong>use_margin<\/strong> <em>(bool)<\/em> \u2014 Show the margin settings<\/li>\n<li><strong>use_padding<\/strong> <em>(bool)<\/em> \u2014 Show the padding settings<\/li>\n<\/ul>\n<p><strong>Margin &amp; Padding Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/63ac0099cfa738e7066ab0427a3e45b7.js?ts=4\"><\/script><\/div>\n<h2 id=\"max-width-max_width\">Max Width <em>(max_width)<\/em><\/h2>\n<p>The max width field handles settings for the module\u2019s max-width and alignment.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521875976383_max-width-field.png\" alt=\"\" \/><\/p>\n<p><strong>Max Width Field Configuration<\/strong><\/p>\n<ul>\n<li><strong>options<\/strong> <em>(array) \u2014<\/em> Field definition parameter overrides\n<ul>\n<li><strong>module_setting_slug<\/strong> <em>(array)<\/em>\n<ul>\n<li><strong>parameter_1<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<li><strong>parameter_2<\/strong> <em>(mixed)<\/em> \u2014 Parameter value<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>toggle_priority<\/strong> <em>(int)<\/em> \u2014 The priority for the modal toggle group<\/li>\n<li><strong>toggle_title<\/strong> <em>(string)<\/em> \u2014 The display name for the modal toggle group (localized)<\/li>\n<li><strong>use_max_width<\/strong> <em>(bool)<\/em> \u2014 Show the max width setting<\/li>\n<li><strong>use_module_alignment<\/strong> <em>(bool)<\/em> \u2014 Show the alignment setting<\/li>\n<\/ul>\n<p><strong>Max Width Field Configuration Examples<\/strong><\/p>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/32dc96280577caa5a14f17311be4d629.js?ts=4\"><\/script><\/div>\n<h2 id=\"all-advanced-fields-configuration-examples\">All Advanced Fields Configuration Examples<\/h2>\n<div><script src=\"https:\/\/gist.github.com\/lots0logs\/625b4039355db0faa078c0fb56404930.js?ts=4\"><\/script><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn about the Advanced Field types for module settings.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23],"tags":[],"class_list":["post-2515","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.4 - 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:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Advanced Field Types For Module Settings - Elegant Themes Documentation\" \/>\n<meta property=\"og:description\" content=\"Learn about the Advanced Field types for module settings.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/\" \/>\n<meta property=\"og:site_name\" content=\"Elegant Themes Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-19T02:37:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-20T01:03:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png\" \/>\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=\"7 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\\\/advanced-field-types-for-module-settings\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/\"},\"author\":{\"name\":\"Dustin Falgout\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\"},\"headline\":\"Advanced Field Types For Module Settings\",\"datePublished\":\"2018-04-19T02:37:51+00:00\",\"dateModified\":\"2018-04-20T01:03:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/\"},\"wordCount\":1455,\"image\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png\",\"articleSection\":[\"Developer Documentation\",\"Divi Module: In-Depth\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/\",\"name\":\"Advanced Field Types For Module Settings - Elegant Themes Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png\",\"datePublished\":\"2018-04-19T02:37:51+00:00\",\"dateModified\":\"2018-04-20T01:03:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/#primaryimage\",\"url\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png\",\"contentUrl\":\"https:\\\/\\\/d2mxuefqeaa7sj.cloudfront.net\\\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/divi-module\\\/advanced-field-types-for-module-settings\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advanced Field Types For Module Settings\"}]},{\"@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:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/","og_locale":"en_US","og_type":"article","og_title":"Advanced Field Types For Module Settings - Elegant Themes Documentation","og_description":"Learn about the Advanced Field types for module settings.","og_url":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/","og_site_name":"Elegant Themes Documentation","article_published_time":"2018-04-19T02:37:51+00:00","article_modified_time":"2018-04-20T01:03:33+00:00","og_image":[{"url":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png","type":"","width":"","height":""}],"author":"Dustin Falgout","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dustin Falgout","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/#article","isPartOf":{"@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/"},"author":{"name":"Dustin Falgout","@id":"https:\/\/blocksylaunch.click\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b"},"headline":"Advanced Field Types For Module Settings","datePublished":"2018-04-19T02:37:51+00:00","dateModified":"2018-04-20T01:03:33+00:00","mainEntityOfPage":{"@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/"},"wordCount":1455,"image":{"@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/#primaryimage"},"thumbnailUrl":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png","articleSection":["Developer Documentation","Divi Module: In-Depth"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/","url":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/","name":"Advanced Field Types For Module Settings - Elegant Themes Documentation","isPartOf":{"@id":"https:\/\/blocksylaunch.click\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/#primaryimage"},"image":{"@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/#primaryimage"},"thumbnailUrl":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png","datePublished":"2018-04-19T02:37:51+00:00","dateModified":"2018-04-20T01:03:33+00:00","author":{"@id":"https:\/\/blocksylaunch.click\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b"},"breadcrumb":{"@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/#primaryimage","url":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png","contentUrl":"https:\/\/d2mxuefqeaa7sj.cloudfront.net\/s_3E6EE66A52C74A4264E177AB41C663A68290F576605178970FBB44417AB0ABD6_1521751928841_background-field.png"},{"@type":"BreadcrumbList","@id":"https:\/\/blocksylaunch.click\/documentation\/developers\/divi-module\/advanced-field-types-for-module-settings\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blocksylaunch.click\/documentation\/"},{"@type":"ListItem","position":2,"name":"Advanced Field Types For Module Settings"}]},{"@type":"WebSite","@id":"https:\/\/blocksylaunch.click\/documentation\/#website","url":"https:\/\/blocksylaunch.click\/documentation\/","name":"Elegant Themes Documentation","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blocksylaunch.click\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blocksylaunch.click\/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:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts\/2515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/comments?post=2515"}],"version-history":[{"count":8,"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts\/2515\/revisions"}],"predecessor-version":[{"id":2572,"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/posts\/2515\/revisions\/2572"}],"wp:attachment":[{"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/media?parent=2515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/categories?post=2515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blocksylaunch.click\/documentation\/wp-json\/wp\/v2\/tags?post=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}