Skip to content

Commit b64d36f

Browse files
authored
Hide the whole additional information tab in WooCommerce Add
1 parent ea8978b commit b64d36f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- This is a code snippets export file generated by the Code Snippets WordPress plugin. -->
3+
<!-- https://wordpress.org/plugins/code-snippets -->
4+
<!-- To import these snippets a WordPress site follow these steps: -->
5+
<!-- 1. Log in to that site as an administrator. -->
6+
<!-- 2. Install the Code Snippets plugin using the directions provided at the above link. -->
7+
<!-- 3. Go to 'Tools: Import' in the WordPress admin panel. -->
8+
<!-- 4. Click on the "Code Snippets" importer in the list -->
9+
<!-- 5. Upload this file using the form provided on that page. -->
10+
<!-- 6. Code Snippets will then import all of the snippets and associated information contained in this file into your site. -->
11+
<!-- 7. You will then have to visit the 'Snippets: All Snippets' admin menu and activate desired snippets. -->
12+
<!-- generator="Code Snippets/2.9.3" created="2017-09-11 18:49" -->
13+
<snippets>
14+
<snippet scope="2">
15+
<name>Hide the whole additional information tab in WooCommerce</name>
16+
<desc></desc>
17+
<tags>hide, whole, additional, information, tab, woocommerce</tags>
18+
<code>function wc_hide_additional_info_tab( $tabs = array() ) {&#13;
19+
unset( $tabs['additional_information'] );&#13;
20+
return $tabs;&#13;
21+
}&#13;
22+
add_filter( 'woocommerce_product_tabs', 'wc_hide_additional_info_tab', 10 );</code>
23+
</snippet>
24+
</snippets>

0 commit comments

Comments
 (0)