Automattic\WooCommerce\Internal\Admin\Orders

Edit::add_order_meta_boxes()public staticWC 1.0

Hooks all meta-boxes for order edit page. This is static since this may be called by post edit form rendering.

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

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Edit::add_order_meta_boxes( $screen_id, $title );
$screen_id(строка) (обязательный)
Screen ID.
$title(строка) (обязательный)
Title of the page.

Код Edit::add_order_meta_boxes() WC 9.3.3

public static function add_order_meta_boxes( string $screen_id, string $title ) {
	/* Translators: %s order type name. */
	add_meta_box( 'woocommerce-order-data', sprintf( __( '%s data', 'woocommerce' ), $title ), 'WC_Meta_Box_Order_Data::output', $screen_id, 'normal', 'high' );
	add_meta_box( 'woocommerce-order-items', __( 'Items', 'woocommerce' ), 'WC_Meta_Box_Order_Items::output', $screen_id, 'normal', 'high' );
	/* Translators: %s order type name. */
	add_meta_box( 'woocommerce-order-notes', sprintf( __( '%s notes', 'woocommerce' ), $title ), 'WC_Meta_Box_Order_Notes::output', $screen_id, 'side', 'default' );
	add_meta_box( 'woocommerce-order-downloads', __( 'Downloadable product permissions', 'woocommerce' ) . wc_help_tip( __( 'Note: Permissions for order items will automatically be granted when the order status changes to processing/completed.', 'woocommerce' ) ), 'WC_Meta_Box_Order_Downloads::output', $screen_id, 'normal', 'default' );
	/* Translators: %s order type name. */
	add_meta_box( 'woocommerce-order-actions', sprintf( __( '%s actions', 'woocommerce' ), $title ), 'WC_Meta_Box_Order_Actions::output', $screen_id, 'side', 'high' );
	self::maybe_register_order_attribution( $screen_id, $title );
}