WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/weblog ping

Contents

Description

Send a pingback.

Usage

<?php weblog_ping$server$path ?>

Parameters

$server
(string) (optional) Host of blog to connect to.
Default: ''
$path
(string) (optional) Path to send the ping.
Default: ''

Return Values

(void) 
This function does not return a value.

Examples

Notes

  • Uses global: (string) $wp_version holds the installed WordPress version number.
  • Uses: IXR_Client WordPress class.
  • Uses: get_option() to retrieve the 'home' option.
  • Uses: get_option() to retrieve the 'blogname' option.
  • Uses: get_bloginfo() to retrieve the 'rss2_url'.

Change Log

Since: 1.2.0

Source File

weblog_ping() is located in wp-includes/comment.php.

Related

See also index of Function Reference and index of Template Tags.