From 99f71e52bb5e04e1b6bed0f28ca1ac6c03041bf0 Mon Sep 17 00:00:00 2001 From: leho Date: Tue, 7 Apr 2015 15:23:30 +0300 Subject: [PATCH] default taxonomy args now filterable, follow-up for #33 Because it only makes sense from a filtering consistency standpoint. There's plenty of use cases. People might call a "testimonial" with a variety of names ranging from a "case study" to "success story". Accompanying "Categories" may need to called "Industries" etc. Small enough change not to hurt anything while gaining flexibility. --- classes/class-woothemes-testimonials-taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-woothemes-testimonials-taxonomy.php b/classes/class-woothemes-testimonials-taxonomy.php index 4605559..5ae5721 100644 --- a/classes/class-woothemes-testimonials-taxonomy.php +++ b/classes/class-woothemes-testimonials-taxonomy.php @@ -123,7 +123,7 @@ private function _get_default_labels () { * @return void */ public function register () { - register_taxonomy( esc_attr( $this->token ), esc_attr( $this->post_type ), (array)$this->args ); + register_taxonomy( esc_attr( $this->token ), esc_attr( $this->post_type ), (array)apply_filters( 'woothemes_testimonials_taxonomy_args', $this->args ) ); } // End register() } // End Class ?>