Advertisement
wclovers

Untitled

Mar 23rd, 2023
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. add_filter( 'wcfm_product_simple_fields_tag', function( $fields ) {
  2.     if( isset( $fields['product_tags'] ) ) {
  3.         $fields['product_tags']['custom_attributes'] = ['required' => 1 ];
  4.     }
  5.     return $fields;
  6. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement