WC_Meta_Box_Product_Data::output()public staticWC 1.0

Output the metabox.

Method of the class: WC_Meta_Box_Product_Data{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Meta_Box_Product_Data::output() code WC 8.6.1

public static function output( $post ) {
	global $thepostid, $product_object;

	$thepostid      = $post->ID;
	$product_object = $thepostid ? wc_get_product( $thepostid ) : new WC_Product();

	wp_nonce_field( 'woocommerce_save_data', 'woocommerce_meta_nonce' );

	include __DIR__ . '/views/html-product-data-panel.php';
}