pronamic / wp-pronamic-pay-woocommerce

WooCommerce driver for the WordPress payment processing library.
http://www.wp-pay.org/extensions/woocommerce/
6 stars 2 forks source link

Fix undefined function error #28

Closed jeffreyvr closed 1 year ago

jeffreyvr commented 1 year ago

PR that fixes the following undefined function error:

 Fatal error: Uncaught Error: Call to undefined function wcs_get_subscription()
in /Users/jeffreyvanrossum/Sites/eisma/wp-content/plugins/pronamic-ideal/vendor/wp-pay-extensions/woocommerce/src/SubscriptionUpdater.php on line 195

Gets triggered by: https://github.com/pronamic/wp-pronamic-pay-woocommerce/blob/develop/src/Extension.php#L94

This results in a fatal error on wp-admin/post-new.php.