generic_ping( int $post_id )

Sends pings to all of the ping site services.


Description Description


Parameters Parameters

$post_id

(int) (Required) Post ID.


Top ↑

Return Return

(int) Same as Post ID from parameter


Top ↑

Source Source

File: wp-includes/comment.php

2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
function generic_ping( $post_id = 0 ) {
    $services = get_option( 'ping_sites' );
 
    $services = explode( "\n", $services );
    foreach ( (array) $services as $service ) {
        $service = trim( $service );
        if ( '' != $service ) {
            weblog_ping( $service );
        }
    }
 
    return $post_id;
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.