Add the Pingback header on single post/page requests Not to the entire site. Clever.
void
action_add_template_vars
()
Register the Pingback event type with the event log
void
action_plugin_activation
( $file)
Unregister the Pingback event type on deactivation
void
action_plugin_deactivation
( $file)
Pingback links from the post content when a post is inserted into the database.
void
action_post_insert_after
(post $post)
-
post
$post: The post from which to send pingbacks
Pingback mentioned links when a post is updated.
void
action_post_update_after
(
Post $post)
-
Post
$post: The post is updated We invoke this function regardless of what might have been updated in the post because:
- the pingback_all_links function keeps track of links its
already pinged, so if the content hasnt changed no
pings will be sent`
Provide plugin info to the system
void
info
()
Redefinition of:
- Plugin::info()
- Returns information about this plugin
Scan all links in the content and send them a Pingback.
void
pingback_all_links
(
string $content,
string $source_uri, [
Post $post =
NULL], [
boolean $force =
false])
-
string
$content: The post content to search
-
string
$source_uri: The source of the content
-
Post
$post: The post object of the source of the ping
-
boolean
$force: If true, force the system to ping all links even if that had been pinged before
Send a single Pingback
void
send_pingback
(
string $source_uri,
string $target_uri, [
Post $post =
NULL])
-
string
$source_uri: The URI source of the ping (here)
-
string
$target_uri: The URI destination of the ping (there, the site linked to in the content)
-
Post
$post: The post object that is initiating the ping, used to track the pings that were sent
Receive a Pingback via XMLRPC
string
xmlrpc_pingback__ping
(array $params)
-
array
$params: An array of XMLRPC parameters from the remote call
Inherited Methods
Inherited From Plugin
Plugin::__construct()
Plugin::add_template()
Plugin::info()
Plugin::_plugin_available_templates()
Plugin::_plugin_include_template_file()
Inherited From Pluggable
Pluggable::__construct()
Pluggable::get_db_schema()
Pluggable::get_file()
Pluggable::get_url()
Pluggable::load()
Pluggable::load_text_domain()
Pluggable::plugin_id()