wcv_json_search_found_tags

Description

apply_filters( 'wcv_json_search_found_tags', $found_tags )

Parameters (1) ( array )

Sample

if ( $tags ) { 

  foreach ( $tags as $tag ) {
    $product_tag = get_term( $tag, $tag_taxonomy );
    $found_tags[ $tag ] = rawurldecode( $product_tag->name );
  }
}

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_json_search_found_tags', $found_tags );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

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

To remove the filter, copy this sample

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

Defined

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

  • wcvendors-pro/public/class-wcvendors-pro-product-controller.php line 1534
    $found_tags = apply_filters( 'wcv_json_search_found_tags', $found_tags );

filters

Updated on January 9, 2017

Was this article helpful?