Created
June 6, 2019 17:25
-
-
Save deeman/ecc89cb1b36e63229d56b0083268a557 to your computer and use it in GitHub Desktop.
WooCommerce - Remove or Change the product description Title
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
| // Remove the product description Title | |
| add_filter( 'woocommerce_product_description_heading', 'remove_product_description_heading' ); | |
| function remove_product_description_heading() { | |
| return ''; | |
| } | |
| // Change the product description title | |
| add_filter('woocommerce_product_description_heading', 'change_product_description_heading'); | |
| function change_product_description_heading() { | |
| return __('NEW TITLE HERE', 'woocommerce'); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove the product description Title
Alterantive:
add_filter( 'woocommerce_product_description_heading', '__return_null' );