wp-api-yoast-meta icon indicating copy to clipboard operation
wp-api-yoast-meta copied to clipboard

Works for Woocommerce product categories?

Open veptune opened this issue 1 year ago • 0 comments

Hello,

I need to add those rest fields to woocommerce product category, so I added this code 👍

// Product cat register_rest_field( 'product_cat', 'yoast_meta', array( 'get_callback' => array( $this, 'wp_api_encode_yoast_tag' ), 'update_callback' => null, 'schema' => null, ) );

In the add_yoast_data function but it did not work, I can't fill those fields from the rest API (it works with posts, pages..)

Did I miss something ?

Thanks

veptune avatar Dec 27 '23 22:12 veptune