Skip to content

Instantly share code, notes, and snippets.

@deeman
Created June 6, 2019 17:25
Show Gist options
  • Select an option

  • Save deeman/ecc89cb1b36e63229d56b0083268a557 to your computer and use it in GitHub Desktop.

Select an option

Save deeman/ecc89cb1b36e63229d56b0083268a557 to your computer and use it in GitHub Desktop.
WooCommerce - Remove or Change the product description Title
// 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');
}
@deeman

deeman commented Jun 6, 2019

Copy link
Copy Markdown
Author

Remove the product description Title
Alterantive:

add_filter( 'woocommerce_product_description_heading', '__return_null' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment