wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.
-
Hi,
we have a WooCommerce Subscriptions product which triggers monthly renewals on the 1st of each month.
Now for some time we see these logs in our www-error.log on the server.
[01-Dec-2023 03:00:59 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:01:06 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:01:10 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:01:20 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:01:24 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:01:28 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:01:32 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:01:36 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:02:05 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:02:09 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:02:13 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:02:17 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:02:21 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:02:30 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead. [01-Dec-2023 03:02:36 UTC] wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.0! Use wc_subscriptions_renewal_order_data instead.
This is just a short excerpt of the overall log. There seems to be a line for each entry.
For some time I was unsure which plugin causes this deprecation warning.
Now grepping (with
ripggrep
/rg
) through the whole source it seems that the DHL for WooCommerce plugin causes these warnings:htdocs$ rg wcs_renewal_order_meta_query wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-data-copier.php 383: * - wcs_renewal_order_meta_query wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/deprecated/class-wcs-filter-deprecator.php 39: 'wcs_renewal_order_meta_query' => 'woocommerce_subscriptions_renewal_order_meta_query', wp-content/plugins/woocommerce-subscriptions/changelog.txt 191:* Dev: Replace use of deprecated hook
wcs_renewal_order_meta_query
withwc_subscriptions_renewal_order_data
inWC_Subscriptions_Switcher
. wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php 53: add_filter( 'wcs_renewal_order_meta_query', array( $this, 'woocommerce_subscriptions_renewal_order_meta_query' ), 10 );First occurrences are just the definitions by the WooCommerce Subscriptions plugin. Last occurrence is the only place where the deprecated
wcs_renewal_order_meta_query
is used throughout all our plugins/core.Version 2.5 of the WooCommerce Subscriptions plugin and the deprecation warning is pretty old. Current version is 5.7.0. So it might be replace pretty soon.
Can you replace the old hook with the “new”
wc_subscriptions_renewal_order_data
in an upcoming version? I think it is just search and replacing the name.
- The topic ‘wcs_renewal_order_meta_query is deprecated since version subscriptions-core 2.5.’ is closed to new replies.