Thread Starter
yeb215
(@yeb215)
I’ve added this to functions.php and it works.
`
// Add the page categories to REST API
$mytax = get_taxonomy( ‘categories’ );
$mytax->show_in_rest = true;
`
Thread Starter
yeb215
(@yeb215)
Hi Danny,
Sorry, my bad. Weren’t fully awake when I wrote that.
The problem is as follow :
– Create a page.
– Access the page’s data using the REST API browsing to /wp/wp-json/v2/pages
– Install your plugin,
– configure exclusive categories,
– create a category and assign to the page
– browse again to /wp/wp-json/v2/pages and see that theere is no “category” field.
Thread Starter
yeb215
(@yeb215)
Thank you for your answer. This is not a suitable solution because we will have many users registering. We want them to be able to do it by themselves, like in any other CMS.
I haven’t found a solution to this yet.
I’ve noticed the SSO setting on Jetpack, and the setting in WordPress to allow users to connect using their WordPress.com account. But still this is not straightforward.