function itsme_disable_feed() { wp_die( __( 'No feed available, please visit the homepage!' ) ); } add_action('do_feed', 'itsme_disable_feed', 1); add_action('do_feed_rdf', 'itsme_disable_feed', 1); add_action('do_feed_rss', 'itsme_disable_feed', 1); add_action('do_feed_rss2', 'itsme_disable_feed', 1); add_action('do_feed_atom', 'itsme_disable_feed', 1); add_action('do_feed_rss2_comments', 'itsme_disable_feed', 1); add_action('do_feed_atom_comments', 'itsme_disable_feed', 1); remove_action( 'wp_head', 'feed_links_extra', 3 ); remove_action( 'wp_head', 'feed_links', 2 ); remove_action( 'wp_head', 'wp_generator' ); remove_action( 'opml_head', 'the_generator' ); add_action('init', 'shift8_security_init', 1); function shift8_security_init() { $current_url = rtrim($_SERVER['REQUEST_URI'], '/'); // Disable XMLRPC add_filter('bloginfo_url', function($output, $property){ return ($property == 'pingback_url') ? null : $output; }, 11, 2); add_filter( 'xmlrpc_enabled', '__return_false' ); if ( strpos($current_url, '/xmlrpc.php') !== false ) { http_response_code(404); die(); } } Contact us - RMvalues
Do NOT follow this link or you will be banned from the site!
%d bloggers like this: