WC_Meta_Box_Product_Data::output( WP_Post $post )

Output the metabox.


Description Description


Parameters Parameters

$post

(Required) Post object.


Top ↑

Source Source

File: includes/admin/meta-boxes/class-wc-meta-box-product-data.php

	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 'views/html-product-data-panel.php';
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.