Created
          May 24, 2013 03:02 
        
      - 
      
- 
        Save dwiash/5641024 to your computer and use it in GitHub Desktop. 
    Add a custom tab to woocommerce product page
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| add_filter('woocommerce_product_tabs', 'lame_custom_product_tab_filter', 123); | |
| function lame_custom_product_tab_filter($args){ | |
| $args[] = array( | |
| 'title' => 'Custom tab', | |
| 'priority' => 999, | |
| 'callback' => 'lame_custom_product_tab' | |
| ); | |
| return $args; | |
| } | |
| function lame_custom_product_tab(){ | |
| echo "this is the value"; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment