Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




generic_ping [ WordPress Function ]

generic_ping ( $post_id = 0 )
Parameters:
  • (int) $post_id Post ID. Not actually used.
Returns:
  • (int) Same as Post ID from parameter
Defined at:



Sends pings to all of the ping site services.

Source


<?php
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;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics