Support » Plugin: WooCommerce » Clean way to disable hooks?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author James Koster

    (@jameskoster)

    If you want to unhook something use remove_action(). E.G.

    remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );

    That was exactly what I was looking for, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clean way to disable hooks?’ is closed to new replies.