Plugin uses depricated function get_product
-
I am being notified that the plugin is using the depricated function ‘get_product’. Would be great if this could be updated to wc_get_product.
Thank you!
[05-Mar-2021 23:39:24 UTC] PHP Deprecated: get_product is <strong>deprecated</strong> since version 3.0! Use wc_get_product instead. in /Users/username/Local/site/app/public/wp-includes/functions.php on line 4859 [05-Mar-2021 23:39:24 UTC] PHP Stack trace: [05-Mar-2021 23:39:24 UTC] PHP 1. {main}() /Users/username/Local/site/app/public/wp-admin/post.php:0 [05-Mar-2021 23:39:24 UTC] PHP 2. require() /Users/username/Local/site/app/public/wp-admin/post.php:206 [05-Mar-2021 23:39:24 UTC] PHP 3. do_meta_boxes() /Users/username/Local/site/app/public/wp-admin/edit-form-advanced.php:688 [05-Mar-2021 23:39:24 UTC] PHP 4. WC_Meta_Box_Product_Data::output() /Users/username/Local/site/app/public/wp-admin/includes/template.php:1389 [05-Mar-2021 23:39:24 UTC] PHP 5. include() /Users/username/Local/site/app/public/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:33 [05-Mar-2021 23:39:24 UTC] PHP 6. WC_Meta_Box_Product_Data::output_tabs() /Users/username/Local/site/app/public/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php:51 [05-Mar-2021 23:39:24 UTC] PHP 7. include() /Users/username/Local/site/app/public/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:45 [05-Mar-2021 23:39:24 UTC] PHP 8. do_action() /Users/username/Local/site/app/public/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-linked-products.php:64 [05-Mar-2021 23:39:24 UTC] PHP 9. WP_Hook->do_action() /Users/username/Local/site/app/public/wp-includes/plugin.php:484 [05-Mar-2021 23:39:24 UTC] PHP 10. WP_Hook->apply_filters() /Users/username/Local/site/app/public/wp-includes/class-wp-hook.php:311 [05-Mar-2021 23:39:24 UTC] PHP 11. Custom_Related_Products_Admin->crp_select_related_products() /Users/username/Local/site/app/public/wp-includes/class-wp-hook.php:287 [05-Mar-2021 23:39:24 UTC] PHP 12. get_product() /Users/username/Local/site/app/public/wp-content/plugins/wt-woocommerce-related-products/admin/class-custom-related-products-admin.php:166 [05-Mar-2021 23:39:24 UTC] PHP 13. wc_deprecated_function() /Users/username/Local/site/app/public/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:235 [05-Mar-2021 23:39:24 UTC] PHP 14. _deprecated_function() /Users/username/Local/site/app/public/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:54 [05-Mar-2021 23:39:24 UTC] PHP 15. trigger_error() /Users/username/Local/site/app/public/wp-includes/functions.php:4859
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin uses depricated function get_product’ is closed to new replies.