woocommerce_admin_process_product_object

woocommerce_admin_process_product_object

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_admin_process_product_object') is found 1 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-product-data.php line 422
    		 * Set props before save.
    		 *
    		 * @since 3.0.0
    		 */
    		do_action( 'woocommerce_admin_process_product_object', $product );
    
    		$product->save();
    
    		if ( $product->is_type( 'variable' ) ) {
    			$original_post_title = isset( $_POST['original_post_title'] ) ? wc_clean( wp_unslash( $_POST['original_post_title'] ) ) : '';
    			$post_title          = isset( $_POST['post_title'] ) ? wc_clean( wp_unslash( $_POST['post_title'] ) ) : '';