VC Element Customization

Write the code in functins.php To add and remove param of VC Elements –

[php]
/*—————————————————————-
VC Elements Customization
—————————————————————–*/
// After VC Init
add_action( ‘vc_after_init’, ‘vc_after_init_actions’ );

function vc_after_init_actions() {

//*******************//
// VC TEXT REMAPPING //
//*******************//

// Remove Params
if ( function_exists( ‘vc_remove_param’ ) ) {
vc_remove_param( ‘vc_row’, ‘el_class’ );
}

// Add Params
$vc_row_new_params = array(

// Example
array(
‘type’ => ‘colorpicker’,
‘holder’ => ”,
‘class’ => ‘mat-gradient’,
‘heading’ => __( ‘Gradient Beginning Color’, ‘matland’ ),
‘param_name’ => ‘mat_gradient_begin’,
‘value’ => ‘#4e7dff’,
‘description’ => __( ‘used the as the gradient background beginning color’, ‘matland’ ),
‘admin_label’ => false,
‘dependency’ => ”,
‘weight’ => 0,
‘group’ => ‘Custom Group’,
),
array(
‘type’ => ‘colorpicker’,
‘holder’ => ”,
‘class’ => ‘mat-gradient’,
‘heading’ => __( ‘Gradient Ending Color’, ‘matland’ ),
‘param_name’ => ‘mat_gradient_end’,
‘value’ => ‘#073ccc)’,
‘description’ => __( ‘used the as the gradient background ending color’, ‘matland’ ),
‘admin_label’ => false,
‘dependency’ => ”,
‘weight’ => 0,
‘group’ => ‘Custom Group’,
),

);

vc_add_params( ‘vc_row’, $vc_row_new_params );

}
[/php]