• Hello Team,

    I am looking for a way to help my clients experiencing the launch of their website after developing it.

    Is there a way I can have a single button [call it “Launch the Site”] on the page that will hide the whole site behind it and once clicked reveals the full site. It should be allowed once only so that it gives them a feeling of cutting the ribbon of the site and post that the site should load normally.

    Any helpful inputs will be much appreciated.

    Best Regards,
    Syed H

    • This topic was modified 5 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You could create a custom template that handles this. Force WP to use it for any front end request through the “template_include” filter. Your filter callback can check the value of a custom option to see if the site has been launched or not. Include a user capability check so you can view the site normally even if the site is yet to be launched.

    Clicking the button makes a home page request with a specific query string. If your template_include callback sees this query string it alters the custom option value to indicate the site has launched before returning the template path that was passed to it from WP, thus fulfilling the home page request.

    You can add an admin option in the back end to manage whether a site needs to be launched or not with the Settings API.

Viewing 1 replies (of 1 total)

The topic ‘Launch Button’ is closed to new replies.