WC_Meta_Box_Product_Data::output()
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() WC Meta Box Product Data::output code WC 9.7.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'; }