michaelwilhelmsen
4/13/2018 - 1:39 PM

Debug Woocommerce Actions

Check what the woocommerce actions returns. Nice for checking priorities and custom hooked in code.

Place in functions.php

add_action( 'woocommerce_after_main_content', function(){
  // Only for admin user role
  if( ! current_user_can('edit_products')) return;

  global $wp_filter;
  echo '<pre>';
  print_r( $wp_filter['woocommerce_after_single_product_summary'] );
  echo '</pre>';
}, 50 );