pre_ping WordPress Action Hook

The pre_ping hook is triggered before a ping is sent. It allows you to modify the list of URLs that are about to be pinged.

do_action_ref_array( 'pre_ping', string[] $post_links, string[] $pung, int $post_ID ) #

Fires just before pinging back links found in a post.


Parameters

$post_links

(string[])Array of link URLs to be checked (passed by reference).

$pung

(string[])Array of link URLs already pinged (passed by reference).

$post_ID

(int)The post ID.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More