Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm customizing a WooCommerce theme and am going to be moving the title. There is an action in content-single-product.php called do_action( 'woocommerce_single_product_summary' ); in the woocommerce_hooks.php file the title action is add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );

I can easily comment this out and place the title function where I need to. I'd prefer to disable the title using a function in my themes functions file so I don't have to worry about modifying core files. What would the function be to disable this title action?

Thanks

share|improve this question

1 Answer 1

up vote 1 down vote accepted

That would be: remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );

You can read about it here: http://codex.wordpress.org/Function_Reference/remove_action

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.