woocommerce_umf_add_box

Add meta boxes to pages Toont een nieuwe box op de product pagina en op de bestel pagina.

Description

woocommerce_umf_add_box(); 

Usage

  1. if ( !function_exists( 'woocommerce_umf_add_box' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-upload-my-file/inc/umf-funct.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woocommerce_umf_add_box(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/umf-funct.php  
  1. function woocommerce_umf_add_box() { 
  2. add_meta_box( 'woocommerce-umf-box-product', __( 'Upload Files', 'woocommerce-umf' ), 'woocommerce_umf_box_product', 'product', 'side', 'default' ); 
  3. add_meta_box( 'woocommerce-umf-box-order-detail', __( 'Uploaded Files', 'woocommerce-umf' ), 'woocommerce_umf_box_order_detail', 'shop_order', 'side', 'default' );