Skip to content

Instantly share code, notes, and snippets.

@jaworowicz
Created October 16, 2019 00:53
Show Gist options
  • Save jaworowicz/ebb96d0178c1991b369ed63af01ce43b to your computer and use it in GitHub Desktop.
Save jaworowicz/ebb96d0178c1991b369ed63af01ce43b to your computer and use it in GitHub Desktop.
Wyłaczenie XML-RPC. https://jaworowi.cz
<?php
/**
*
* @link https://jaworowi.cz
* @since 1.0.0
* @package XML-RPC-disable
*
* @wordpress-plugin
* Plugin Name: XML-RPC DISABLE
* Plugin URI: https://jaworowi.cz
* Description: Wyłączenie pliku "zdalnej kontroli" XML-RPC w WordPress.
* Version: 1.0.0
* Author: Jakub Jaworowicz
* Author URI: https://jaworowi.cz
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: XML-RPC-disable
*/
// Wklej od kolejnej linii lub dodaj cały plik do folderu /wp-content/mu-plugins
add_filter('xmlrpc_enabled', '__return_false');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment