The Divi theme developer documentation describes how to control the Advanced Field Types for a module's settings: that is, how to add / control advanced options such as background and font options to Divi modules.
There's a built-in filter for modifying these fields, which you can use like so:
add_filter("{$slug}_advanced_fields", "edit_advanced_fields", 10, 3);
function edit_advanced_fields($advanced_fields, $slug, $main_css_element) {
return $advanced_fields;
}
0 Comments