add_ping

FUNCTION wp-includes\post.php (ligne 5907) github
Fires once a post, its terms and meta data has been saved.

Paramètres

Entrée :
$post, $uri
Sortie :
@param int          $post_id     Post ID.
@param WP_Post      $post        Post object.
@param bool         $update      Whether this is an existing post being updated.
@param null|WP_Post $post_before Null for new posts, the WP_Post object prior
@param int|WP_Post  $post Post ID or post object.
@param string|array $uri  Ping URI or array of URIs.
@return int|false How many rows were updated.

Utilisation

// Utilisation de la fonction add_ping
$result = add_ping($post, $uri);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...