Displaying Woocommerce Product Category in WordPress

woocommerce categories are not a “category” they’re the product_cat taxonomy. change your args like so: $params = array( ‘posts_per_page’ => 5, ‘post_type’ => ‘product’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘product_cat’, ‘field’ => ‘slug’, ‘terms’ => ‘cap’ ) ) );

Which field should I edit to make the checkbox marked by default?

It most likely must is ‘default’ => TRUE. ‘request_vendor_access’ => [ ‘label’ => __(‘Request access to become an Artist’, ‘ignitewoo_vendor_stores’), ‘type’ => ‘checkbox’, ‘required’ => FALSE, ‘class’ => [‘form-row-full vendor_stores_request_access’], ‘clear’ => TRUE, ‘default’ => TRUE, ] If not, also try ‘default_value’ => TRUE, or try it without ‘clear’. Depending on what you want to … Read more