Created
March 24, 2014 12:59
-
-
Save megazalrock/9739570 to your computer and use it in GitHub Desktop.
WordPressのpinbackを無効にする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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