Tag Info

Hot answers tagged

1

According to The Codex on wp_set_object_terms() get set by passing in a slug instead of the actual Term Name: wp_set_object_terms( $object_id, $terms, $taxonomy, $append ); $terms (array/int/string) (required) The slug or id of the term (such as category or tag IDs), will replace all existing related terms in this taxonomy. To clear or remove all ...


1

Glad you got it to work! Per my comment, WooCommerce takes Post Meta into consideration whenever deciding whether or not to add a Product to the Shop Catalog. It seems you were able to make it show up by updating the product visibility: update_post_meta( $new_product_post_id, '_visibility', 'visible' ); I'm not 100% familiar with WooCommerce so should it ...



Only top voted, non community-wiki answers of a minimum length are eligible