0

Is there any way to trigger the Customizer's Publish button in javascript?

The use-case is to create a secondary save button within a section.

Example of Publish Button

1

Found the answer to this. For anyone looking:

wp.customize.previewer.save()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.