Fires once a post, its terms and meta data has been saved.
$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 de la fonction add_ping
$result = add_ping($post, $uri);
if ($result) {
// Votre logique ici
}
Chargement des actualités...