Skip to main content

vc_edit_form_class

Filters the array of CSS classes applied to the edit form fields container element. This allows adding or modifying CSS classes on the wrapper element that contains all parameter fields in the shortcode edit form.

Parameters

ParameterTypeDescription
$editor_css_classesarrayArray of CSS class strings. Default includes wpb_edit_form_elements and vc_edit_form_elements.
$attsarrayThe shortcode attributes.
$paramsarrayThe shortcode parameters configuration.

Usage

<?php
add_filter( 'vc_edit_form_class', 'my_custom_edit_form_class', 10, 3 );

function my_custom_edit_form_class( $editor_css_classes, $atts, $params ) {
// Add a custom class to the edit form container
$editor_css_classes[] = 'my-custom-form-class';
return $editor_css_classes;
}

Source

File: include/classes/editors/class-vc-edit-form-fields.php