Automattic\WooCommerce\Internal\Admin\Orders

Edit::add_save_meta_boxes()public staticWC 1.0

Hooks metabox save functions for order edit page.

Метод класса: Edit{}

No Hooks.

Return

null. Nothing.

Usage

$result = Edit::add_save_meta_boxes();

Code of Edit::add_save_meta_boxes() WC 7.1.0

public static function add_save_meta_boxes() {
	/**
	 * Save Order Meta Boxes.
	 *
	 * In order:
	 *      Save the order items.
	 *      Save the order totals.
	 *      Save the order downloads.
	 *      Save order data - also updates status and sends out admin emails if needed. Last to show latest data.
	 *      Save actions - sends out other emails. Last to show latest data.
	 */
	add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Items::save', 10 );
	add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Downloads::save', 30, 2 );
	add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Data::save', 40 );
	add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Actions::save', 50, 2 );
}