Title: Popup triggered by code
Last modified: August 30, 2016

---

# Popup triggered by code

 *  Resolved [arathra](https://wordpress.org/support/users/arathra/)
 * (@arathra)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/popup-triggered-by-code/)
 * Is it possible to have the popup triggered by a snippet of code?
 * I’d like to have a snippet of php which queries the database and, if the code
   finds a certain condition is met, the popup appears.
 * Is this functionality already in the popup system?
 * Many thanks!
 * [https://wordpress.org/plugins/popup-maker/](https://wordpress.org/plugins/popup-maker/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/popup-triggered-by-code/#post-6490486)
 * [@arathra](https://wordpress.org/support/users/arathra/) – Sure, If you are going
   to be doing a lot of different targeting I would suggest looking at our Advanced
   Targeting Conditions extension which allows custom functions to be passed as 
   a condition.
 * Otherwise you can use the popmake_popup_is_loadable filter.
 * Couple of examples [here](https://gist.github.com/danieliser/4cd87090f338362d81e1)
   and [here](https://wordpress.org/support/topic/opening-on-a-taxonomy-page?replies=10).
 * Hope that helps.
 *  Thread Starter [arathra](https://wordpress.org/support/users/arathra/)
 * (@arathra)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/popup-triggered-by-code/#post-6490567)
 * Brilliant – thanks. It took a bit of tweaking but I got there in the end with
   popmake_popup_is_loadable.
 * Do you have a page with documentation on that function for future reference?
 * (Just reviewed and rated the plugin!)
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/popup-triggered-by-code/#post-6490583)
 * [@arathra](https://wordpress.org/support/users/arathra/) – Currently no for that
   function. Other than a few code examples on gisthub. We are building toward having
   all of the code documented inline which we will then have load into an APIGEN
   codex like develop.simmerwp.com.
 * We also have a new doc system which we are currently rewriting all of the docs
   into at docs.wppopupmaker.com

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Popup triggered by code’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [trigger](https://wordpress.org/support/topic-tag/trigger/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/popup-triggered-by-code/#post-6490583)
 * Status: resolved