__PHP_Incomplete_Class_Name
-
Hi,
I have a custom endpoint that fetches woocommerce products.
However when the product returns on our client the meta data is populated by these __PHP_Incomplete_Class_Name: WC_Meta_Data issues.
this is the code that enables the endpoint
function add_custom_product_endpoint($allowed_endpoints) { if (!isset($allowed_endpoints['wp/custom-product-endpoint']) || !in_array('products', $allowed_endpoints['wp/custom-product-endpoint'])) { $allowed_endpoints['wp/custom-product-endpoint'][] = 'products'; } return $allowed_endpoints; } add_filter('wp_rest_cache/allowed_endpoints', 'add_custom_product_endpoint', 10, 1);
What should I do to remedy this?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘__PHP_Incomplete_Class_Name’ is closed to new replies.