Notice: Function wc_get_order was called incorrectly
-
Hi, with debug on, this appears on the post edit page.
Notice: Function wc_get_order was called incorrectly. wc_get_order should not be called before post types are registered (woocommerce_after_register_post_type action) Backtrace: require_once(‘wp-admin/admin.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, do_action(‘woocommerce_init’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Stripe_Manager->woocommerce_dependencies, WC_Stripe_Advanced_Settings->__construct, WC_Stripe_Settings_API->__construct, WC_Stripe_Advanced_Settings->init_form_fields, wc_get_order_statuses, apply_filters(‘wc_order_statuses’), WP_Hook->apply_filters, Marketkingcore_Admin->lock_composite_status, wc_get_order, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 2.5.) in /wp-includes/functions.php on line 6121
Anything you guys can do to fix this error?
Thanks…
The topic ‘Notice: Function wc_get_order was called incorrectly’ is closed to new replies.