Top WooCommerce & WordPress Plugins › Forums › Maximum Products per User for WooCommerce › How to set different timeframe for two different category? › Reply To: How to set different timeframe for two different category?
So far, so good. Do my settings seem correct to you here?
My settings are set to “Last 365 days” located here… WooCommerce > Settings > Maximum Products per User > General > Date Range)
Then my code for the term_id is
321 => 90, (for this termID = clock is reset every 90 days, or every quarter )
325 => 365 * 5, ( for this termID = clock is reset every 5 years)
Also, I see in the code you pasted it says DAY_IN_SECONDS and I just want to confirm that is correct.
return ( ! $is_product && isset( $terms[ $product_or_term_id ] ) ? ( $current_time – $terms[ $product_or_term_id ] * DAY_IN_SECONDS ) : $date_to_check );
Thanks for your help with this…