woocommerce_admin_process_product_object hook

This commit is contained in:
Mike Jolley 2017-01-23 10:20:09 +00:00
parent 04785b7fcd
commit cd05b94ec3
1 changed files with 5 additions and 0 deletions

View File

@ -301,6 +301,11 @@ class WC_Meta_Box_Product_Data {
WC_Admin_Meta_Boxes::add_error( $errors->get_error_message() );
}
/**
* @since 2.7.0 to set props before save.
*/
do_action( 'woocommerce_admin_process_product_object', $product );
$product->save();
if ( $product->is_type( 'variable' ) ) {