public function featureSelfPingback()
    {
        add_action('pre_ping', function (&$links) {
            $home = get_option('home');

            foreach ($links as $l => $link) {
                if (0 === strpos($link, $home)) {
                    unset($links[$l]);
                }
            }
        });
    }
public function featureSelfPingback()
    {
        add_action('pre_ping', function (&$links) {
            $home = get_option('home');

            foreach ($links as $l => $link) {
                if (0 === strpos($link, $home)) {
                    unset($links[$l]);
                }
            }
        });
    }
public function featureSelfPingback ( ) { add_action ( 'pre_ping' , function ( & $ links ) { $ home = get_option ( 'home' ) ; foreach ( $ links as $ l => $ link ) { if ( 0 === strpos ( $ link , $ home ) ) { unset ( $ links [ $ l ] ) ; } } } ) ; }
Remove self pingbacks
Remove self pingbacks