Customizer JS API: Defining active_callback for a section
Yes, however you will need to use a different approach, and you may need to do a but more work because active_callback here in PHP can directly connect with the database to find out whether the current query is for the contact page. The Customizer controls by default just has access to the previewUrl. So … Read more