Closed crodriguezbrito closed 6 days ago
@aratidgr8 Do you mind testing this PR?
@wpscholar Hey,
Myself & @amruthabs22 have tested below flows with new api call /wc/v3/products
and it works fine without any errors / warnings
Thanks!
CC: @crodriguezbrito
Proposed changes
This PR addresses the deprecated error from the strtotime() function in PHP.
The issue occurs when making an API call to the WooCommerce Store API (/wc/v3/products). This deprecated error is triggered if there are no products created on the site. The reason is that the API uses $product_query->get_last_modified(), which lacks error handling for cases where no products exist.
This PR will use the WooCommerce REST API endpoint (/wc/v3/products), which does not trigger the deprecated error.
Type of Change
Video
Checklist
Further comments