Skip to main content

vc_animation_style_render_filter

Filters the rendered output of the animation style parameter field. Use this to override the full HTML output of the CSS animation param in the edit form.

Parameters

ParameterTypeDescription
$outputstringThe rendered HTML of the animation style field.
$settingsarrayThe param settings array.
$valuestringThe current param value.
$tagstringThe shortcode tag.

Usage

<?php
add_filter( 'vc_animation_style_render_filter', 'my_custom_function', 10, 4 );

function my_custom_function( $output, $settings, $value, $tag ) {
// Add custom markup to the animation param field
$output .= '<div class="my-custom-animation-note">Custom animation options enabled.</div>';

return $output;
}

Source

File: include/params/animation_style/animation_style.php