Examines a URL and try to determine the post ID it represents. Checks are supposedly from the hosted site blog.
$url
Sortie :
@param string $url Permalink to check. @return int Post ID, or 0 on failure.
// Utilisation de la fonction url_to_postid
$result = url_to_postid($url);
if ($result) {
// Votre logique ici
}
Chargement des actualités...