Title: Feature request: conditional enabling (hooks)
Last modified: November 27, 2017

---

# Feature request: conditional enabling (hooks)

 *  Resolved [Norske](https://wordpress.org/support/users/norske/)
 * (@norske)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/feature-request-conditional-enabling-hooks/)
 * Greetings!
 * Is there any way to enable/disable construction mode via hooks? (Depending on
   hostname or some custom environmental varables from wp-config.php, for example).
 * (By the way, adding some simple hooks might provide great flexibility & fun. 
   Day/night wallpapers switching, special greetings for returning visitors, etc.
   🙂

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

 *  Plugin Author [WebFactory](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/feature-request-conditional-enabling-hooks/#post-9724680)
 * Hi 🙂
 * We do have a filter for that – `ucp_is_construction_mode_enabled` Have a look
   in the main plugin file, around line #707.
 * There’s also `ucp_head` and `ucp_footer` – we really have to document things 
   🙂
 *  Thread Starter [Norske](https://wordpress.org/support/users/norske/)
 * (@norske)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/feature-request-conditional-enabling-hooks/#post-9724865)
 * Oh 🙂 Really lurked UCP’s webpage for the docs, but didn’t even look through 
   the code. Shame on me 🙂 Thanks a lot, will try it.

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

The topic ‘Feature request: conditional enabling (hooks)’ is closed to new replies.

 * ![](https://ps.w.org/under-construction-page/assets/icon-256x256.gif?rev=2284849)
 * [Under Construction](https://wordpress.org/plugins/under-construction-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/under-construction-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/under-construction-page/)
 * [Active Topics](https://wordpress.org/support/plugin/under-construction-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/under-construction-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/under-construction-page/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Norske](https://wordpress.org/support/users/norske/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/feature-request-conditional-enabling-hooks/#post-9724865)
 * Status: resolved