0

The Below syntax removes the "Related products" from appearing on the Single Product page, but what does the 20 stand for ?

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);

Thanks.

2

20 is the priority. To remove, must use the same priority as the one that was set in the add_action.

|improve this answer|||||
  • What does this add to what's already there (and accepted)? – tfrommen Mar 18 '14 at 21:29
  • @tf The accepted one is just RTFM. I tried to talk like a human being. Formally, it does not add - for those who can RTFM. But those would not ask that question, right? – tivnet Mar 19 '14 at 1:25
1

$priority (int) (optional) The priority of the function (as defined when the function was originally hooked). Default: 10

http://codex.wordpress.org/Function_Reference/remove_action

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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