get_id(); } else { $order_id = $post->ID; } $args = array( 'order_id' => $order_id ); if ( 0 !== $order_id ) { $notes = wc_get_order_notes( $args ); } else { $notes = array(); } $private_button_label = __( 'Add private note', 'woocommerce' ); $customer_button_label = __( 'Send note to customer →', 'woocommerce' ); $email_settings_url = admin_url( 'admin.php?page=wc-settings&tab=email§ion=wc_email_customer_note' ); ?>
%2$s %3$s', esc_url( $email_settings_url ), esc_html__( 'email template', 'woocommerce' ), esc_html__( '(opens in a new tab)', 'woocommerce' ) ); printf( /* translators: %s: link to the customer note email template settings */ esc_html__( 'Preview or edit %s', 'woocommerce' ), $email_template_link // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- already escaped above. ); ?>