Filters the attachment meta data.
$attachment_id, $data
Sortie :
@param array $data Array of meta data for the given attachment. @param int $attachment_id Attachment post ID. @param int $attachment_id Attachment post ID. @param array $data Attachment meta data. @return int|bool Whether the metadata was successfully updated.
// Utilisation de la fonction wp_update_attachment_metadata
$result = wp_update_attachment_metadata($attachment_id, $data);
if ($result) {
// Votre logique ici
}
Chargement des actualités...