We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: