JSON API: build interface allowing you to whitelist CPTs for the wpcom REST API
One can use the rest_api_allowed_post_types filter to whitelist a specific CPT, and thus manage it from WordPress.com:
https://developer.jetpack.com/hooks/rest_api_allowed_post_types/
However, to be able to use that feature, you need to find the code snippet, and add to your theme's functions.php file or in a functionality plugin. What if we had an interface, in wp-admin, allowing you to whitelist any of the CPTs currently active on your site? It would help people discover another aspect of Calypso.
@rickybanister suggested adding this interface to Settings > Writing, when there are active CPTs.
Related Discussion: p6TEKc-Ey-p2
This feels like it belongs somewhere along with the existing "Custom Content Types" UI, which looks like this right now:
We could just list out the locally-registered custom post types (and taxonomies?) and allow the user to check a box next to them (or a toggle, or whatever) to whitelist them.
Love this idea.
Since we're refactoring the Settings UI, can we move it to 4.6 where the rest of the Settings UI overhaul belongs?
cc @aduth @lezama @mtias who worked on #5487 ^
I think the setting change would be in addition to the other change, right? It seems we can improve the experience in some ways without having to add an option for CPT to appear.
This would be cool for 4.6 with the settings UI
Fixed in #5487