Ticket #21840: add filter for taxonomies in quick edit.patch

File add filter for taxonomies in quick edit.patch, 676 bytes (added by helgatheviking, 9 months ago)

adds a filter for the get_object_taxonomies in inline_edit

  • class-wp-posts-list-table.php

     
    709709                $post = get_default_post_to_edit( $screen->post_type ); 
    710710                $post_type_object = get_post_type_object( $screen->post_type ); 
    711711 
    712                 $taxonomy_names = get_object_taxonomies( $screen->post_type ); 
     712                $taxonomy_names = apply_filters( 'inline_edit_taxonomies', get_object_taxonomies( $screen->post_type ), $screen->post_type ); 
     713 
    713714                $hierarchical_taxonomies = array(); 
    714715                $flat_taxonomies = array(); 
    715716                foreach ( $taxonomy_names as $taxonomy_name ) {