Programatically adding variation attributes?
-
I can’t find any metadata attached to a variation post. Are they tied to the variation by setting a taxonomy term? I tried that and it didn’t seem to work either:
wp_set_object_terms($wcVariationId, $attributeTerm, ‘pa_size’, true );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Programatically adding variation attributes?’ is closed to new replies.