weblog_ping [ WordPress Function ]
weblog_ping ( $server = '', $path = '' )
| Parameters: |
|
| Uses: |
|
| Defined at: |
|
Send a pingback.
Source
<?php
function weblog_ping($server = '', $path = '') {
global $wp_version;
include_once(ABSPATH . WPINC . '/class-IXR.php');
include_once(ABSPATH . WPINC . '/class-wp-http-ixr-client.php');
// using a timeout of 3 seconds should be enough to cover slow servers
$client = new WP_HTTP_IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path));
$client->timeout = 3;
$client->useragent .= ' -- WordPress/'.$wp_version;
// when set to true, this outputs debug messages by itself
$client->debug = false;
$home = trailingslashit( home_url() );
if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping
$client->query('weblogUpdates.ping', get_option('blogname'), $home);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/weblog ping « WordPress Codex
Function Reference/weblog ping ... Usage. <?php weblog_ping( $server, $path ) ?> ... Source File. weblog_ping() is located in wp-includes/comment.php.
codex.wordpress.org - WordPress › Support » Functions.php Error When Publishing
Warning: weblog_ping(/home/me/domains/mouseprint.org/public_html/wp- includes/class-IXR.php): failed to open stream: No such file or directory in ...
wordpress.org - Weblog ping component | Interesting about Joomla! CMS
Sep 16, 2007 ... Ping 1.0.0 is a component for pinging xml-rpc updating services (such as rpc. weblogs.com or rpc.technorati.com). To ping just select.
joomup.com - The Social Networking Weblog - Ping.fm Has a New Owner ...
Ping.fm Has a New Owner: Seesmic. January 9, 2010 by admin. Ping.fm Has a New Owner: Seesmic. I like Ping.fm because it saves me time. I can update ...
www.socialnetworking-weblog.com