Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom logic in update() widget method doesn't execute #128

Open
brendanlawton opened this issue Jul 3, 2017 · 1 comment
Open

Custom logic in update() widget method doesn't execute #128

brendanlawton opened this issue Jul 3, 2017 · 1 comment

Comments

@brendanlawton
Copy link

Steps to reproduce issue:

  • Add some custom logic to the update() method of a widget
  • Add widget to a page via Tailor

Expected result:
Custom logic is executed.

Actual result:
Custom logic is not executed.

@andrew-worsfold
Copy link
Contributor

@brendanlawton -

The update() method is not currently called, due to the (relatively restrictive) way that WordPress widgets work. Updates are performed using JavaScript. It may be possible to approach widgets differently to allow this, which I will investigate for a future release.

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

No branches or pull requests

2 participants