Closed douglas-johnson closed 12 months ago
do_scheduled_update is expecting array $options https://github.com/thoughtis/cata-blocks/blob/main/blocks/shopify/includes/feed/update/class-update.php#L30
do_scheduled_update
array $options
but when you use wp_schedule_single_event and pass it an array, the array is spread into individual arguments. https://github.com/thoughtis/cata-blocks/blob/main/blocks/shopify/includes/feed/class-feed.php#L79-L83
wp_schedule_single_event
https://developer.wordpress.org/reference/functions/wp_schedule_single_event/#parameters
I think you could use the spread operator so the arguments become ...$options instead.
...$options
Or to use individual arguments, we'd just need to figure out the order.
do_scheduled_update
is expectingarray $options
https://github.com/thoughtis/cata-blocks/blob/main/blocks/shopify/includes/feed/update/class-update.php#L30but when you use
wp_schedule_single_event
and pass it an array, the array is spread into individual arguments. https://github.com/thoughtis/cata-blocks/blob/main/blocks/shopify/includes/feed/class-feed.php#L79-L83https://developer.wordpress.org/reference/functions/wp_schedule_single_event/#parameters
I think you could use the spread operator so the arguments become
...$options
instead.Or to use individual arguments, we'd just need to figure out the order.