Posted By

florent on 10/21/11


Tagged

wordpress


Versions (?)

Disable Self Trackbacks


 / Published in: PHP
 

  1. function disable_self_ping( &$links ) {
  2. foreach ( $links as $l => $link )
  3. if ( 0 === strpos( $link, get_option( 'home' ) ) )
  4. unset($links[$l]);
  5. }
  6. add_action( 'pre_ping', 'disable_self_ping' );

Report this snippet  

You need to login to post a comment.