WC_Meta_Box_Order_Notes::output()public staticWC 1.0

Output the metabox.

{} It's a method of the class: WC_Meta_Box_Order_Notes{}

No Hooks.


null. Nothing.


$result = WC_Meta_Box_Order_Notes::output( $post );
$post(WP_Post) (required)
Post object.

Code of WC_Meta_Box_Order_Notes::output() WC 6.7.0

public static function output( $post ) {
	global $post;

	$args = array(
		'order_id' => $post->ID,

	$notes = wc_get_order_notes( $args );

	include __DIR__ . '/views/html-order-notes.php';
	<div class="add_note">
			<label for="add_order_note"><?php esc_html_e( 'Add note', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Add a note for your reference, or add a customer note (the user will be notified).', 'woocommerce' ) ); ?></label>
			<textarea type="text" name="order_note" id="add_order_note" class="input-text" cols="20" rows="5"></textarea>
			<label for="order_note_type" class="screen-reader-text"><?php esc_html_e( 'Note type', 'woocommerce' ); ?></label>
			<select name="order_note_type" id="order_note_type">
				<option value=""><?php esc_html_e( 'Private note', 'woocommerce' ); ?></option>
				<option value="customer"><?php esc_html_e( 'Note to customer', 'woocommerce' ); ?></option>
			<button type="button" class="add_note button"><?php esc_html_e( 'Add', 'woocommerce' ); ?></button>