Skip to content

Instantly share code, notes, and snippets.

View amitmojumder's full-sized avatar
🏠
Working from home

Amit Mojumder amitmojumder

🏠
Working from home
  • NewsCred
  • Dhaka, Bangladesh
View GitHub Profile
@amitmojumder
amitmojumder / .htaccess
Created December 11, 2014 19:18
Wordpress Security .HTACCESS file
# Block one or more IP address. Replace IP_ADDRESS_* with the IP you want to block
<Limit GET POST>
order allow,deny
deny from IP_ADDRESS_1
deny from IP_ADDRESS_2
allow from all
</Limit>
# Disable directory browsing
@amitmojumder
amitmojumder / function.php
Created December 11, 2014 19:05
Wordpress function.php snippets
// Disable all update nag
function remove_core_updates(){
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}
add_filter('pre_site_transient_update_core','remove_core_updates');
add_filter('pre_site_transient_update_plugins','remove_core_updates');
add_filter('pre_site_transient_update_themes','remove_core_updates');