Advertisement
verygoodplugins

Untitled

Jun 23rd, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1.         public function panel_content() {
  2.  
  3.             echo '<p class="form-field"><label for="wpf-apply-tags-woo">Apply tags when purchased</label>';
  4.             echo '<p class="form-field"><label for="wpf-apply-tags-woo">Apply tags when refunded</label>';
  5.  
  6.             global $post;
  7.             $settings = array('apply_tags' => array());
  8.  
  9.             if(get_post_meta( $post->ID, 'wpf-settings-woo', true ))
  10.                 $settings = array_merge($settings, get_post_meta( $post->ID, 'wpf-settings-woo', true ));
  11.  
  12.             wpf_render_tag_multiselect($settings['apply_tags'], 'wpf-settings-woo', 'apply_tags');
  13.  
  14.             echo '<small class="show_if_variable">Tags for product variations can be configured within the Variations tab.</small>';
  15.  
  16.             echo '</p>';
  17.  
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement