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; }