wp_ajax_cropped_attachment_id

FILTER wp-admin\includes\ajax-actions.php (ligne 4110) github
Filters the attachment ID for a cropped image.

Paramètres

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

Utilisation

// 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;
}

Actualités

Chargement des actualités...