Compare the existing image sub-sizes (as saved in the attachment meta) to the currently registered image sub-sizes, and return the difference. Registered sub-sizes that are larger than the image are skipped.
$attachment_id
Sortie :
@param int $attachment_id The image attachment post ID. @return array[] Associative array of arrays of image sub-size information for
// Utilisation de la fonction wp_get_missing_image_subsizes
$result = wp_get_missing_image_subsizes($attachment_id);
if ($result) {
// Votre logique ici
}
Chargement des actualités...