Can I change a control’s transport in Customizer depending on the previewed page?
Yes, you can change the transport of a registered setting dynamically after the page loads. And actually the active_callback can be used in conjunction with JS to change the transport instead of causing the control to be hidden. Assuming you have registered a control with the ID of excerpt_length, and you have registered a setting … Read more