Description
apply_filters( 'wcv_product_tags', array( $attributes ) )
Parameters (1) (array)
Sample
array( 'id' => 'product_tags', 'label' => __( 'Tags', 'wcvendors-pro' ), 'value' => implode( ',', array_keys( $tag_ids ) ), 'style' => 'width: 100%;', 'class' => 'wcv-tag-search', 'type' => 'hidden', 'show_label' => 'true', 'custom_attributes' => array( 'data-placeholder' => __( 'Search or add a tag…', 'wcvendors-pro' ), 'data-action' => 'wcv_json_search_tags', 'data-multiple' => 'true', 'data-tags' => 'true', 'data-selected' => esc_attr( json_encode( $tag_ids ) ) ), )
Usage Examples
To run the filter, copy this sample
$array_val = apply_filters( 'wcv_product_tags', array( $attributes ) ); if ( ! empty( $array_val ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter_wcv_product_tags callback function filter_wcv_product_tags( array( $different_attributes ) ) { // do your thing here :-) ... return $array_val } add_filter( 'wcv_product_tags', 'filter_wcv_product_tags', 10, 1 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'wcv_product_tags', 'filter_wcv_product_tags', 10, 1 );
Defined
This filter is defined in the following source file(s)
- wcvendors-pro/public/forms/class-wcvendors-pro-product-form.php line 580
WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_product_tags', array(