generic_ping()
Sends pings to all of the ping site services.
No Hooks.
Return
Int
. Same post ID as provided.
Usage
generic_ping( $post_id );
- $post_id(int)
- Post ID.
Changelog
Since 1.2.0 | Introduced. |
generic_ping() generic ping code WP 6.7.1
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; }