Set featured status and catalog visibility when saving products.

This commit is contained in:
Justin Shreve 2016-11-30 10:20:18 -08:00
parent aabfb3e3d9
commit b5e9fc08fe
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,8 @@ class WC_Meta_Box_Product_Data {
'purchase_note' => wp_kses_post( stripslashes( $_POST['_purchase_note'] ) ),
'downloadable' => isset( $_POST['_downloadable'] ),
'virtual' => isset( $_POST['_virtual'] ),
'featured' => isset( $_POST['_featured'] ),
'catalog_visibility' => wc_clean( $_POST['_visibility'] ),
'tax_status' => wc_clean( $_POST['_tax_status'] ),
'tax_class' => wc_clean( $_POST['_tax_class'] ),
'weight' => wc_clean( $_POST['_weight'] ),