weblog_ping

Advertisement

Summery Summery

Send a pingback.

Syntax Syntax

weblog_ping( string $server = '', string $path = '' )

Parameters Parameters

$server

(string) (Optional) Host of blog to connect to.

Default value: ''

$path

(string) (Optional) Path to send the ping.

Default value: ''

Source Source

File: wp-includes/comment.php

	/*
	 * Step 1.
	 * Parsing the post, external links (if any) are stored in the $post_links array.
	 */
	$post_links_temp = wp_extract_urls( $content );

	/*
	 * Step 2.
	 * Walking through the links array.
	 * First we get rid of links pointing to sites, not to specific files.
	 * Example:
	 * http://dummy-weblog.org
	 * http://dummy-weblog.org/
	 * http://dummy-weblog.org/post.php
	 * We don't wanna ping first and second types, even if they have a valid <link/>.

Advertisement

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.