Skip to content

Instantly share code, notes, and snippets.

@DenisJunio
DenisJunio / nginx-wordpress.conf
Created September 14, 2020 20:21 — forked from nfsarmento/nginx-wordpress.conf
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
@DenisJunio
DenisJunio / functions-mu-encryption.php
Created February 17, 2020 19:21 — forked from muhammad-naderi/functions-mu-encryption.php
Wordpress encrypt usermeta data database
<?php
/**
* Created by PhpStorm.
* User: Muhammad
* Date: 05/07/2016
* Time: 01:20 PM
*/
add_filter('get_user_metadata', 'decrypt_user_meta',10,4);