wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
		 * Load Maintenance mode if is set
		 */
Load Maintenance mode if is set
Load Maintenance mode if is set
public function load_maintenance_mode() {
		    if( 'wp-login.php' !== $GLOBALS['pagenow'] && !is_user_logged_in()){
			    $pre = 'setting-page_builder_';
			    $is_enabled = (bool) themify_builder_get($pre . 'maintenance_mode', 'tools_maintenance_mode') && (bool) themify_builder_get($pre . 'maintenance_page', 'tools_maintenance_page');
				    if ( ! $is_enabled ) {
				    return;
			    }
			    add_action( 'template_redirect', array( $this, 'maintenance_redirect' ), 11 );
		    }
		}
public function load_maintenance_mode ( ) { if ( 'wp-login.php' !== $ GLOBALS [ 'pagenow' ] && ! is_user_logged_in ( ) ) { $ pre = 'setting-page_builder_' ; $ is_enabled = ( bool ) themify_builder_get ( $ pre . 'maintenance_mode' , 'tools_maintenance_mode' ) && ( bool ) themify_builder_get ( $ pre . 'maintenance_page' , 'tools_maintenance_page' ) ; if ( ! $ is_enabled ) { return ; } add_action ( 'template_redirect' , array ( $ this , 'maintenance_redirect' ) , 11 ) ; } }
Load Maintenance mode if is set
Load Maintenance mode if is set
// Priority = 11 that is *after* WP default filter `redirect_canonical` in order to avoid redirection loop.