How to disable Pingbacks Comment on WordPress Website ?


How to disable Pingbacks Comment on WordPress Website ?

Here is a way to stop pingbackson your wordpress website.

How to disable Pingbacks Comment on WordPress Website ?

 

Step – 1

Go to functions.php in your themes and add following codes most below.

 

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

 

Done…

 



Find More related How to disable Pingbacks Comment on WordPress Website ?


Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *