wcv_product_gallery_options

Description

apply_filters( 'wcv_product_gallery_options', array( $attributes ) )

Parameters (1) (array)

Sample

array( 
  'max_upload' => 4, 
  'notice' => __( 'You have reached the maximum number of gallery images.', 'wcvendors-pro' )
)

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_product_gallery_options', $param );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_product_gallery_options  callback
function my_filter_function( $param ) {
  // do your thing here :-) ... 

  return $array_val; 
}
add_filter( 'wcv_product_gallery_options', 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_product_gallery_options', 'my_filter_function', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/public/class-wcvendors-pro-form-helper.php line 648
    $gallery_options = apply_filters( 'wcv_product_gallery_options', array(

filters

Updated on January 9, 2017

Was this article helpful?