Skip to content

Instantly share code, notes, and snippets.

@megazalrock
Created March 24, 2014 12:59
Show Gist options
  • Save megazalrock/9739570 to your computer and use it in GitHub Desktop.
Save megazalrock/9739570 to your computer and use it in GitHub Desktop.
WordPressのpinbackを無効にする
<?php
add_filter( 'xmlrpc_methods', 'Remove_Pingback_Method' );
function Remove_Pingback_Method( $methods ) {
unset( $methods['pingback.ping'] );
unset( $methods['pingback.extensions.getPingbacks'] );
return $methods;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment