woo_sl/admin/product_fields

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInPrint this page

Type
Filter

Arguments
(array) $product_fields

Description
Add / Remove / Change admin product fields.

Example of usage

    add_filter('woo_sl/admin/product_fields', 'custom_product_fields');
    function custom_product_fields( $product_fields )
        {
            
            foreach($product_fields as  $key    =>  $product_field_data)
                {
                    if( is_array( $product_field_data ) && ( !isset($product_field_data['function']) ||   $product_field_data['function'] !=  'WOO_SL_admin_product::html_license_keys' ) )
                        {   
                            $product_fields[$key]['style'] =   'display: none';
                        }     
                    
                }
               
            return $product_fields;   
        }

By woocommerce-sl, posted on August 30, 2017

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments