Will clean the attachment in the cache. Cleaning means delete from the cache. Optionally will clean the term object cache associated with the attachment ID. This function will not run if $_wp_suspend_cache_invalidation is not empty.
$id, $clean_terms = false
Sortie :
@param int $id The attachment ID in the cache to clean. @param bool $clean_terms Optional. Whether to clean terms cache. Default false.
// Utilisation de la fonction clean_attachment_cache
$result = clean_attachment_cache($id, $clean_terms = false);
if ($result) {
// Votre logique ici
}
Chargement des actualités...