Last active
March 15, 2019 18:27
-
-
Save gradosevic/a3f2e3d80e5d4d14fc071146cdcb7803 to your computer and use it in GitHub Desktop.
WordPress Setup Checklist
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 | |
//Links | |
//https://www.codeinwp.com/blog/secure-your-wordpress-website/ | |
//Upload backups script | |
//https://olivermarshall.net/how-to-upload-a-file-to-google-drive-from-the-command-line/ | |
///////////////////////////// | |
//Enable automatic WP updates | |
///////////////////////////// | |
//Add these to theme's functions.php | |
function remove_wordpress_version() { | |
return ''; | |
} | |
add_filter('the_generator', 'remove_wordpress_version'); | |
add_filter( 'auto_update_plugin', '__return_true' ); | |
add_filter( 'auto_update_theme', '__return_true' ); | |
//Add this to wp-config.php | |
define( 'WP_AUTO_UPDATE_CORE', true ); | |
///////////////// | |
//Security | |
///////////// | |
- Move wp-config.php one folder up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment