WC_Meta_Box_Product_Data::output()public staticWC 1.0

Output the metabox.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Meta_Box_Product_Data::output() WC 6.7.0

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';
}