Automattic\WooCommerce\Internal\Admin
ShippingLabelBanner::add_meta_boxes
Add metabox to order page.
Method of the class: ShippingLabelBanner{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ShippingLabelBanner = new ShippingLabelBanner(); $ShippingLabelBanner->add_meta_boxes();
ShippingLabelBanner::add_meta_boxes() ShippingLabelBanner::add meta boxes code WC 10.9.4
public function add_meta_boxes() {
if ( ! OrderUtil::is_order_edit_screen() ) {
return;
}
if ( $this->should_show_meta_box() ) {
add_meta_box(
'woocommerce-admin-print-label',
__( 'Shipping Label', 'woocommerce' ),
array( $this, 'meta_box' ),
null,
'normal',
'high',
array(
'context' => 'shipping_label',
)
);
add_action( 'admin_enqueue_scripts', array( $this, 'add_print_shipping_label_script' ) );
}
}