• Good morning, is there any way to empty the woocommerce trash automatically every day? I’ve tried define (‘EMPTY_TRASH_DAYS’, 1); that works with posts and pages, but not with products. I couldn’t find much more information.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Scanning through the core code, it seems that WooCommerce is making use of the same function as WP Core does when trashing custom post types. Are you sure that the CRON actually running to trash those posts?

    Thread Starter buga9

    (@buga9)

    thank you so much for your fast response.
    maybe i didn’t explain myself that well, but what i mean is that when i tried to use the “define (‘EMPTY_TRASH_DAYS’, 1);” on wp-config it emptied trash for posts and pages but not for products. so it means that the cron is running, right?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘empty woocommerce trash automatically’ is closed to new replies.