Skip to content

Commit 0149de4

Browse files
committed
fix: terms MetaBoxes is printing twice in case other plugins use same code structure
1 parent 6b5f0ca commit 0149de4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Boxes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ public function print_term_boxes( \WP_Term $term ) {
136136
do_meta_boxes( "edit-{$term->taxonomy}", 'normal', $term );
137137
do_meta_boxes( "edit-{$term->taxonomy}", 'advanced', $term );
138138
echo '</div></div>';
139+
// remove the term hook after being executed
140+
unset($wp_meta_boxes["edit-{$term->taxonomy}"]);
139141
}
140142

141143
/**

0 commit comments

Comments
 (0)