Call to undefined method WC_Product_Simple::get_id()
-
Hello there,
There seems to be a bug in the EWD_UFAQ_WooCommerce_Tab.php file with WooCommerce 2.2:
Call to undefined method WC_Product_Simple::get_id() in wp-content/plugins/ultimate-faqs/Functions/EWD_UFAQ_WooCommerce_Tab.php on line 9
I modified the following lines and it seems to fix the issue for me but not sure if I’m doing it right:
From:
$Product_Post = get_post($product->get_id());
To:
$Product_Post = get_post( get_the_ID() );
Any help would be much appreciated. Thank you for the great plugin.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Call to undefined method WC_Product_Simple::get_id()’ is closed to new replies.