Codex

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

Function Reference/get to ping

This page redirects to an external site: https://developer.wordpress.org/reference/functions/get_to_ping/

Description

Retrieve URLs that need to be pinged.

Usage

<code style="color: #000000"><span style="color: #0000BB"><?php get_to_ping</span><span style="color: #007700">( </span><span style="color: #0000BB">$post_id </span><span style="color: #007700">) </span><span style="color: #0000BB">?></span></code>

Parameters

$post_id
(integer) (required) Post ID
Default: None

Return Values

(array) 
Returns array of URLs that need to be pinged.

Examples

Notes

  • Uses global: (object) $wpdb to read 'to_ping' field from _posts table from database.
  • Uses: apply_filters() on 'get_to_ping' on the URLs that need to be pinged.

Change Log

Since: 1.5.0

Source File

get_to_ping() is located in wp-includes/post.php.

Related

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