From 8e37f8d0a5fad70ee2748d3d4522935172719946 Mon Sep 17 00:00:00 2001 From: Panagiotis Vagenas Date: Sun, 13 Sep 2015 10:03:25 +0300 Subject: [PATCH] #9116. Moving the action outside the curly braces will do the trick. --- includes/class-wc-post-types.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-post-types.php b/includes/class-wc-post-types.php index 79ff62fbff6..7f12ff590a9 100644 --- a/includes/class-wc-post-types.php +++ b/includes/class-wc-post-types.php @@ -209,9 +209,9 @@ class WC_Post_types { register_taxonomy( $name, apply_filters( "woocommerce_taxonomy_objects_{$name}", array( 'product' ) ), apply_filters( "woocommerce_taxonomy_args_{$name}", $taxonomy_data ) ); } } - - do_action( 'woocommerce_after_register_taxonomy' ); } + + do_action( 'woocommerce_after_register_taxonomy' ); } /**