• We’ve recently been looking at doing more with the WordPress REST API, exposing site content in predictable ways to other applications. Is there a way to have the settings from Widget Context included in a REST API response, so that consuming applications can determine which widgets are visible on a given page?

    I don’t currently see the values defined by this plugin in the responses to the sidebar, widgers, or pages endpoints; nor do I see in the source code any calls to register_meta or register_rest_field that would point me in a direction to see where the content might be enountered.

    Is this possible using the plugin currently, or could this feature be requested?

  • The topic ‘Include visibility rules in REST API endpoint?’ is closed to new replies.