%s

', $message ); } // Prevent the Customizer from being loaded on WordPress versions prior to 4.7. function applicator_func_prevent_customizer() { wp_die( sprintf( __( 'Applicator requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'applicator' ), $GLOBALS['wp_version'] ), '', array( 'back_link' => true, ) ); } add_action( 'load-customize.php', 'applicator_func_prevent_customizer' ); // Prevent the Theme Preview from being loaded on WordPress versions prior to 4.7. function applicator_func_prevent_theme_preview() { if ( isset( $_GET['preview'] ) ) { wp_die( sprintf( __( 'Applicator requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'applicator' ), $GLOBALS['wp_version'] ) ); } } add_action( 'template_redirect', 'applicator_func_prevent_theme_preview' );