I am using Wordpress and Contact form 7. I need to show a popup using magnificPopup js which will come after the successfully submission of the contact form. Have added an hook for the wpcf7_mail_sent, but how can I call popup to show using javascript. Example : In functions.php in Custom.js file Answer Try this create a bootstrap modal popup