Forked from mishterk/bypass-elementors-maintenance-mode.php
Created
April 4, 2024 13:29
-
-
Save pavlo-bondarchuk/0fbe6e3f9e4b000386e83dbb5e9b02a0 to your computer and use it in GitHub Desktop.
Using this snippet, you can bypass Elementor's maintenance mode by adding ?bypass_maintenance=1 to the query string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'pre_option_elementor_maintenance_mode_mode', function ( $option ) { | |
$parameter = 'bypass_maintenance'; // change this to whatever you like | |
if ( isset( $_GET['bypass_maintenance'] ) and $_GET['bypass_maintenance'] ) { | |
return 0; // needs to be falsy but not FALSE | |
} | |
return $option; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment