wp-api-customize-endpoints
wp-api-customize-endpoints copied to clipboard
What to do about active callbacks?
The active_callback defined on panels, sections, and controls is called when the preview loads and the boolean return value of the invoked active_callback indicates whether or not the construct is contextual to the current page. Since the REST API has no page context, what does this mean for the active callback? How should a completely REST API-driven Customizer obtain this? Or is the active prop it not relevant for REST API and the active value should instead be only obtained in the way it is currently when the preview loads and then exports the return values from PHP to JS?