taxonomy_parent_dropdown_args

taxonomy_parent_dropdown_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('taxonomy_parent_dropdown_args') is found 2 times:

  • /wp-admin/edit-tag-form.php line 194
    					'aria_describedby' => 'parent-description',
    				);
    
    				/** This filter is documented in wp-admin/edit-tags.php */
    				$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' );
    				wp_dropdown_categories( $dropdown_args );
    				?>
    				<?php if ( 'category' === $taxonomy ) : ?>
    					<p class="description" id="parent-description"><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
    				<?php else : ?>
    					<p class="description" id="parent-description"><?php echo $tax->labels->parent_field_description; ?></p>
    
  • /wp-admin/edit-tags.php line 505
    		 * }
    		 * @param string $taxonomy The taxonomy slug.
    		 * @param string $context  Filter context. Accepts 'new' or 'edit'.
    		 */
    		$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' );
    
    		$dropdown_args['aria_describedby'] = 'parent-description';
    
    		wp_dropdown_categories( $dropdown_args );
    		?>
    		<?php if ( 'category' === $taxonomy ) : ?>