Available since version 2.5.6 or higher.


  • open: It allows to open the popup
  • close: It allows to close the popup

Open Popup by ID


Close Popup by ID


Open Popup and Close



  • beforeOpen: It runs before opening the popup
  • afterOpen: It runs after opening the popup
  • beforeClose: It runs before closing the popup
  • afterClose: It runs after closing the popup
  • submit: It runs after sending the form


Use cases:

Open a Popup by clicking on a button (HTML)

123 is the Popup ID


Open a Popup by clicking on a button


Contact Form 7: Open a Popup after sending the form


WooCommerce: Open a Popup when updating the Cart

Was this article helpful?