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 to modify the arguments of FrmAppHelper::images_dropdown() method.
Usage
add_filter( 'frm_images_dropdown_args', 'my_custom_function');
Parameters
- $new_args (array): The arguments after filling the defaults.
- $args (array): The arguments passed to the method, before filling the defaults.
Examples
Add a custom value to the arguments
add_filter( 'frm_images_dropdown_args', 'add_custom_args_image_dropdown', 10, 2);
function add_custom_args_image_dropdown( $new_args, $args ) {
$new_args['your_custom_args'] = 'Your custom args';
return $new_args;
}