3 Snippets
<10 Favourites
<10 Downloads

_MK - SECURITY - Block Author Enumeration

// 🔒 Block ?author=1 user enumeration attempts add_action('init', function () { if (!is_admin() && isset($_GET['author'])) {…

<10

_MK - Last connection

// Enregistre la date de connexion de l'utilisateur function enregistrer_derniere_connexion($user_login, $user) { // Met à jour…

<10

_MK - SECURITY - Disable XML-RPC-API

// Disable XML-RPC add_filter( 'xmlrpc_enabled', '__return_false' ); // Block access to xmlrpc.php via .htaccess equivalent (Apache…

<10