disable_categories_dropdown

disable_categories_dropdown

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('disable_categories_dropdown') is found 1 times:

  • /wp-admin/includes/class-wp-posts-list-table.php line 475
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    *
     * @param bool   $disable   Whether to disable the categories drop-down. Default false.
     * @param string $post_type Post type slug.
     */
    if ( false !== apply_filters( 'disable_categories_dropdown', false, $post_type ) ) {
        return;
    }
     
    if ( is_object_in_taxonomy( $post_type, 'category' ) ) {
        $dropdown_options = array(
            'show_option_all' => get_taxonomy( 'category' )->labels->all_items,