Fatal error: Uncaught Error: Call to undefined function wc_get_orders()

I have installed a plugin ( Delivery & Pickup Date Time for WooCommerce ) on my localhost and I got this error:

Fatal error: Uncaught Error: Call to undefined function wc_get_orders() in C:xampphtdocstestsitewordpresswp-contentpluginswoo-deliveryadminclass-coderockz-woo-delivery-admin.php:1390 Stack trace: #0 C:xampphtdocstestsitewordpresswp-includesclass-wp-hook.php(287): Coderockz_Woo_Delivery_Admin->coderockz_woo_delivery_add_delivery_type(”) #1 C:xampphtdocstestsitewordpresswp-includesclass-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 C:xampphtdocstestsitewordpresswp-includesplugin.php(478): WP_Hook->do_action(Array) #3 C:xampphtdocstestsitewordpresswp-adminadmin.php(175): do_action(‘admin_init’) #4 C:xampphtdocstestsitewordpresswp-adminindex.php(10): require_once(‘C:\xampp\htdocs…’) #5 {main} thrown in C:xampphtdocstestsitewordpresswp-contentpluginswoo-deliveryadminclass-coderockz-woo-delivery-admin.php on line 1390

I tried to uninstall the plugin but I can not access the plugins page or dashborad, every time I get the error above. I made some researches but I couldn’t find anything for this specific error.
I’ll be glad if someone could help me to solve this.



Source link