wp-api-customize-endpoints icon indicating copy to clipboard operation
wp-api-customize-endpoints copied to clipboard

What to do about active callbacks?

Open westonruter opened this issue 8 years ago • 0 comments

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?

westonruter avatar Jun 25 '17 06:06 westonruter