Automattic\WooCommerce\Internal\Admin\Orders

Edit::display()publicWC 1.0

Render order edit page.

Method of the class: Edit{}

Hooks from the method

Return

null. Nothing (null).

Usage

$Edit = new Edit();
$Edit->display();

Edit::display() code WC 8.7.0

public function display() {
	/**
	 * This is used by the order edit page to show messages in the notice fields.
	 * It should be similar to post_updated_messages filter, i.e.:
	 * array(
	 *   {order_type} => array(
	 *      1 => 'Order updated.',
	 *      2 => 'Custom field updated.',
	 * ...
	 * ).
	 *
	 * The index to be displayed is computed from the $_GET['message'] variable.
	 *
	 * @since 7.4.0.
	 */
	$messages = apply_filters( 'woocommerce_order_updated_messages', array() );

	$message = $this->message;
	if ( isset( $_GET['message'] ) ) {
		$message = absint( $_GET['message'] );
	}

	if ( isset( $message ) ) {
		$message = $messages[ $this->order->get_type() ][ $message ] ?? false;
	}

	$this->render_wrapper_start( '', $message );
	$this->render_meta_boxes();
	$this->render_wrapper_end();
}