woocommerce_umf_box_product

Inhoud van de box op de product bewerk pagina.

Description

woocommerce_umf_box_product( $post ); 

Parameters (1)

0. $post
The post.

Usage

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

Defined (1)

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

/inc/umf-funct.php  
  1. function woocommerce_umf_box_product($post) { 
  2. wp_nonce_field( 'woo_umf_nonce', 'woo_umf_nonce' ); 
  3. echo '<p>'; 
  4. echo '<label for="_woo_umf_enable">' . __('Enable', 'woocommerce-umf' ) . ': </label> '; 
  5. echo '<input type="hidden" name="_woo_umf_enable" value="0" />'; 
  6. $myarray=get_post_meta( $post->ID, '_woo_umf_enable'); 
  7. $checked=checked( get_post_meta( $post->ID, '_woo_umf_enable', true ), 1, false ); 
  8. echo '<input type="checkbox" id="_woo_umf_enable" class="checkbox" name="_woo_umf_enable" value="1" ' . $checked . ' />'; 
  9. echo '</p>';