Created
March 29, 2021 15:22
-
-
Save georgestephanis/11ec988ec3b9e43b9f8a2779ee3ab91a to your computer and use it in GitHub Desktop.
`off-with-its-head` theme
This file contains 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 | |
if ( ! headers_sent() ) { | |
nocache_headers(); | |
header( 'X-Robots-Tag: noindex, nofollow, noarchive, nosnippet' ); | |
wp_safe_redirect( admin_url() ); | |
} | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="robots" content="noindex, nofollow, noarchive, nosnippet" /> | |
<meta http-equiv="refresh" content="0; url=<?php echo esc_attr( admin_url() ); ?>" /> | |
</head> | |
</html> |
This file contains 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
/* | |
Theme Name: Off With Its Head | |
Theme URI: https://example.com | |
Author: WordPress.com Special Projects | |
Author URI: https://wpspecialprojects.wordpress.com/ | |
Description: A blank theme that doesn't display any content. Useful when using WordPress as a headless backend. | |
Requires at least: 5.6 | |
Tested up to: 5.7 | |
Requires PHP: 5.7 | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment