Last active
January 22, 2016 17:06
-
-
Save jlav1n/4da71f8a8a3d92fc47b4 to your computer and use it in GitHub Desktop.
This file contains 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 | |
/* | |
Plugin Name: Disable Pingbacks | |
Description: This plugin disables pingbacks. | |
Version: 1.0 | |
Author: Josh Lavin | |
Author URI: http://www.endpoint.com | |
*/ | |
add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['pingback.ping'] ); return $methods; } ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment