Filter WooCommerce admin products list by a custom taxonomy
There is some missing parts in your code: Try the following: add_action(‘restrict_manage_posts’, ‘admin_products_by_manufacturer_filter_dropdown’); function admin_products_by_manufacturer_filter_dropdown() { global $typenow, $pagenow; $taxonomy = ‘vyrobca’; // The custom taxonomy if( ‘edit.php’ === $pagenow && ‘product’ === $typenow && taxonomy_exists( $taxonomy ) ) { $info_taxonomy = get_taxonomy($taxonomy); $selected = isset($_GET[$taxonomy]) ? $_GET[$taxonomy] : ”; wp_dropdown_categories( array( ‘show_option_all’ => sprintf( … Read more