Generates attachment meta data and create image sub-sizes for images.
Génère des métadonnées pour les pièces jointes et crée des sous-dimensions pour les images.
$attachment_id, $file
Sortie :
@param int $attachment_id Attachment ID to process. @param string $file Filepath of the attached image. @return array Metadata for attachment.
add_filter('wp_generate_attachment_metadata', 'custom_attachment_metadata', 10, 2);
function custom_attachment_metadata($metadata, $attachment_id) {
return $metadata;
}
Chargement des actualités...