SHARE
TWEET

Untitled

a guest Jul 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. // Customize woocommerce product data tabs
  4.  
  5. function customize_woo_description_tab( $tabs ) {
  6.  
  7.     $tabs['description']['callback'] = 'woo_description_tab_content';   // Custom description callback
  8.  
  9.     return $tabs;
  10. }
  11.  
  12. function woo_description_tab_content() {
  13.     echo '<h2>Custom Description</h2>';
  14.     echo '<p>Here\'s a custom description</p>';
  15. }
  16.  
  17.  
  18. add_filter( 'woocommerce_product_tabs', 'customize_woo_description_tab', 98 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top