Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

What to do about active callbacks? #14

Open
westonruter opened this issue Jun 25, 2017 · 0 comments
Open

What to do about active callbacks? #14

westonruter opened this issue Jun 25, 2017 · 0 comments
Labels

Comments

@westonruter
Copy link
Member

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant