Filters the attachment ID for a cropped image.
$attachment_id, $context
Sortie :
@param int $attachment_id The attachment ID of the cropped image. @param string $context The Customizer control requesting the cropped image.
// Modifier la valeur avec le filtre 'wp_ajax_cropped_attachment_id'
add_filter('wp_ajax_cropped_attachment_id', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($attachment_id) {
// Modifier la valeur
return $attachment_id;
}
Chargement des actualités...