Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook allows you to modify the output of the FrmAppHelper::images_dropdown() method.
Usage
add_filter( 'frm_images_dropdown_output', 'my_custom_function');
Parameters
- $output (string): The HTML output of images dropdown.
- $args (array): Includes selected, options, classes, input_attrs. See FrmAppHelper::fill_default_images_dropdown_args() method for more details.
Examples
Wrap the images dropdown
add_filter( 'frm_images_dropdown_output', 'wrap_image_dropdown', 10, 2);
function wrap_image_dropdown( $output, $args ) {
return '<div class="your-custom-class">' . $output . '</div>';
}