wcv_vendor_ratings_tab

Description

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

Parameters (1) (array)

Sample

array(
  'title'   => $vendor_ratings_label,
  'priority'  => 50,
  'callback'  => array( $this, 'vendor_ratings_panel' ) 
)

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_vendor_ratings_tab', array( $attributes ) );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $array_val; 
}
add_filter( 'wcv_vendor_ratings_tab', 'filter_wcv_vendor_ratings_tab', 10, 1 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_vendor_ratings_tab', 'filter_wcv_vendor_ratings_tab', 10, 1 );

Defined

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

  • wcvendors-pro/includes/class-wcvendors-pro-ratings-controller.php line 580
    $tabs[ 'vendor_ratings_tab' ] = apply_filters( 'wcv_vendor_ratings_tab', array(

filters

Updated on January 9, 2017

Was this article helpful?