Last active
October 3, 2020 19:09
-
-
Save woogists/2964ec01c8bea50fcce62adf2f5c1232 to your computer and use it in GitHub Desktop.
[Extending][Adding a Section to a Settings Tab] How to create a section beneath the products tab
This file contains 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
/** | |
* Create the section beneath the products tab | |
**/ | |
add_filter( 'woocommerce_get_sections_products', 'wcslider_add_section' ); | |
function wcslider_add_section( $sections ) { | |
$sections['wcslider'] = __( 'WC Slider', 'text-domain' ); | |
return $sections; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment