wp_get_missing_image_subsizes

FUNCTION wp-admin\includes\image.php (ligne 75) github
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.

Paramètres

Entrée :
$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

// Utilisation de la fonction wp_get_missing_image_subsizes
$result = wp_get_missing_image_subsizes($attachment_id);

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

Actualités

Chargement des actualités...