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

What to do about active callbacks? #14

@westonruter

Description

@westonruter

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions