1

Please help. I need to create product attribute term after I create a product attribute taxonomy.

wc_create_attribute([
  'name' => 'Size',
  'slug' => 'size'
]);

// This will only work If I refresh the page
wp_insert_term( 'Large', 'pa_sizeee' ); 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.