The Divi theme developer documentation describes how to control the Custom CSS Fields for a module's settings.
There's a built-in filter for modifying these fields, which you can use like so:
add_filter("{$slug}_custom_css_fields", "edit_custom_css_fields", 10, 3);
function edit_custom_css_fields($custom_css_fields, $slug, $main_css_element) {
return $custom_css_fields;
}
0 Comments