Skip to content

Instantly share code, notes, and snippets.

View rvarbanov's full-sized avatar
:shipit:

Radi Varbanov rvarbanov

:shipit:
View GitHub Profile
add_action('template_redirect', 'bwp_template_redirect');
function bwp_template_redirect() {
if (is_author()) {
wp_redirect( home_url() );
exit;
}
}
Options All -Indexes
order allow,deny
deny from 456.123.8.9
allow from all
<Files wp-login.php>
order deny,allow
Deny from all
# allow access from my IP address
allow from 192.168.5.1
</Files>
order deny,allow
allow from 192.168.5.1
deny from all
<files wp-config.php>
order allow,deny
deny from all
</files>
error_reporting(0);
@ini_set('display_errors', 0);
define('DISALLOW_FILE_EDIT', true);
add_filter('auto_update_theme', '__return_true');
add_filter('auto_update_plugin', '__return_true');