From a66fde2ea1a9effacfd98ded4c9eda83672ac386 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 26 Aug 2013 17:31:09 +0000 Subject: [PATCH] Add 'taxonomy_parent_dropdown_args' filter for the parent dropdown on taxonomy term editing screens. props leewillis77. fixes #18166. Built from https://develop.svn.wordpress.org/trunk@25123 git-svn-id: http://core.svn.wordpress.org/trunk@25103 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tags.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 4de2a674d6..4b44b4ba2e 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -371,7 +371,20 @@ if ( current_user_can($tax->cap->edit_terms) ) {
- 0, 'hide_if_empty' => false, 'taxonomy' => $taxonomy, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => true, 'show_option_none' => __('None'))); ?> + 0, + 'hide_if_empty' => false, + 'taxonomy' => $taxonomy, + 'name' => 'parent', + 'orderby' => 'name', + 'hierarchical' => true, + 'show_option_none' => __( 'None' ), + ); + + $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy ); + wp_dropdown_categories( $dropdown_args ); + ?>