Advertisement
wclovers

Hide "sold individually" for vendor

Nov 26th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. add_filter( 'wcfm_product_fields_stock', function( $fields, $product_id, $product_type ) {
  2.     if( wcfm_is_vendor() ) $fields = wcfm_hide_field( 'sold_individually', $fields );
  3.     return $fields;
  4. }, 999, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement