First, is there a list of filters/actions somewhere that shows what I can hook into?
Second, I want to show a list of the newest products from that are no more than a week old.
Under More Settings, I have Order=Descending; Order by=Modified; Status=Published; Meta Key=_stock_status; Meta value=instock; Tax operator=IN
I need to limit the posts this shows to only from the past week.
I found this snippet that might work, but I’m not sure what action/filter to use.
$week = date( ‘W’ );
$year = date( ‘Y’ );
$query = new WP_Query( ‘year=’ . $year . ‘&w=’ . $week );
-Robyn
https://lovecanary.ca/new-arrivals