When searching for products on my WooCommerce site from the backend (edit.php), by default the results are being returned filtered for &post_status=trash.
I want to search all products, not just those in the trash. I think searching all product statuses is the default value, but somehow I guess it has become corrupted?
Is there a line of code I can edit to adjust this default? Or hardcode it to always search ALL.
I've tried looking in edit.php and found line 314 which I think might be controlling it, but edited it to no avail:
<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
Any help gratefully received!
Aucun commentaire:
Enregistrer un commentaire