add_control(\n"; $content .= "\t\t\t'{$control_key}',\n"; $content .= "\t\t\t[\n"; $content .= "\t\t\t\t'type' => Controls_Manager::DIVIDER,\n"; // Style property if (!empty($field['style'])) { $content .= "\t\t\t\t'style' => '" . esc_js($field['style']) . "',\n"; } // Add common properties (separator, condition) $content .= $this->build_common_properties($field); // Close control $content .= "\t\t\t]\n"; $content .= "\t\t);\n\n"; return $content; } /** * DIVIDER has no label and is never responsive (mirrors build()). */ public function get_config($control_key, $field) { $args = ['type' => $this->type_constant()]; if (!empty($field['style'])) { $args['style'] = $field['style']; } $args = array_merge($args, $this->get_common_config($field)); return [ 'key' => $control_key, 'responsive' => false, 'args' => $args, ]; } }