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.2

apply_filters('taxonomy_parent_dropdown_args') is found 2 times:

  • /wp-admin/edit-tag-form.php line 194
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
        '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 508
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    * }
     * @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 ) : ?>