Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Created March 11, 2019 12:55
Show Gist options
  • Save WordPress-Handbuch/656c5b78151b0bc231fe405081070939 to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/656c5b78151b0bc231fe405081070939 to your computer and use it in GitHub Desktop.
Removes WordPress 5 RPC service itself and the <link> from the HTML header
add_filter( 'xmlrpc_enabled', '__return_false' );
remove_action('wp_head', 'rsd_link');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment