Support » Plugin: Maintenance Redirect » Bypass specific page Maintenance Redirect

  • Resolved pkclubpaul

    (@pkclubpaul)


    Hi boys and girls,

    I really need some help with this plugin; i created a logo-upload but the site isn’t reachable for public. I’m asking my partners (business) to upload their logo, but the site is on maintance mode. Where can i configure a bypass to that specific page?

    Take care and stay strong #COVID-19.

    Cheers! Paul

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi @pkclubpaul – apologies for not replying sooner but for some reason I don’t always receive notifications from wordpress.org about new posts!!

    To get you what you want as you can use the wpjf3_matches filter to check the URL of the page and allow access that way, for example:

    function my_wpjf3_matches( $wpjf3_matches ) {
        $slug = 'logo-upload'; // <- add the page slug here
        if ( stristr( $_SERVER['REQUEST_URI'], $slug ) ) 
            $wpjf3_matches[] = "<!-- Logo upload page -->";
        return $wpjf3_matches;
    }
    add_filter( "wpjf3_matches", "my_wpjf3_matches" );

    So, with that in your theme’s (child theme or self-coded, of course) functions.php file your logo upload page will be accessible.

    Hope that helps

    Peter

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.