Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orders with custom status don't show in "all orders" list #95

Open
maxity-germany opened this issue Sep 27, 2024 · 0 comments
Open

Orders with custom status don't show in "all orders" list #95

maxity-germany opened this issue Sep 27, 2024 · 0 comments

Comments

@maxity-germany
Copy link

maxity-germany commented Sep 27, 2024

When calling the orders list without any filters (/wp-admin/edit.php?post_type=shop_order), orders with custom status don't show in the list of orders. They are counted in the menu item counter, but do not appear in the list of orders.

That's my config:

`
register_post_status(

'maxity-b2b-onrequest',

[
	/* WordPress built in arguments. */
	'label'                       => __( 'Auf Anfrage', 'wp-statuses' ),
	'label_count'                 => _n_noop( 'Auf Anfrage <span class="count">(%s)</span>', 'Auf Anfrage <span class="count">(%s)</span>', 'wp-statuses' ),
	'public'                      => true,
	'show_in_admin_all_list'      => true,
	'show_in_admin_status_list'   => true,
	'post_type'                   => array( 'post' ),
	'show_in_metabox_dropdown'    => true,
	'show_in_inline_dropdown'     => true,
	'show_in_press_this_dropdown' => true,
	'labels'                      => [
		'metabox_dropdown' => __( 'Auf Anfrage',        'wp-statuses' ),
		'inline_dropdown'  => __( 'Auf Anfrage',        'wp-statuses' ),
	],
	'dashicon'                    => 'dashicons-email',
]

);`

Any idea why this is happening? WooCommerce and the wp-statuses plugin are on their latest versions.

@maxity-germany maxity-germany changed the title Custom status doesn't show in "all orders" list Orders with custom status doesn't show in "all orders" list Sep 27, 2024
@maxity-germany maxity-germany changed the title Orders with custom status doesn't show in "all orders" list Orders with custom status don't show in "all orders" list Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant