Description
apply_filters( 'wcv_product_table_columns', $columns );
Parameters (1) ( array )
Sample
$columns = array( 'ID' => __( 'ID', 'wcvendors-pro' ), 'tn' => __( '<i class="fa fa-picture-o"></i>', 'wcvendors-pro' ), 'details' => __( 'Details', 'wcvendors-pro' ), 'price' => __( '<i class="fa fa-shopping-cart"></i>', 'wcvendors-pro' ), 'status' => __( 'Status', 'wcvendors-pro' ), );
Usage Examples
To run the filter, copy this sample
$array_val = apply_filters( 'wcv_product_table_columns', $columns ); if ( ! empty( $array_val ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter_wcv_product_table_columns callback function my_filter_function( $param ) { // do your thing here :-) ... return $array_val; } add_filter( 'wcv_product_table_columns' , 'my_filter_function', 10, 1 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'wcv_product_table_columns', '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 1581
return apply_filters( 'wcv_product_table_columns', $columns );