Support » Plugin: Under Construction » Feature request: conditional enabling (hooks)

  • Resolved Norske

    (@norske)



    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

    (@webfactory)

    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 🙂

    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.