wp_image_resize_identical_dimensions

FILTER wp-includes\media.php (ligne 661) github
Filters whether to proceed with making an image sub-size with identical dimensions with the original/source image. Differences of 1px may be due to rounding and are ignored.

Paramètres

Entrée :
false, $orig_w, $orig_h
Sortie :
@param bool $proceed The filtered value.
@param int  $orig_w  Original image width.
@param int  $orig_h  Original image height.

Utilisation

// Modifier la valeur avec le filtre 'wp_image_resize_identical_dimensions'
add_filter('wp_image_resize_identical_dimensions', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(false) {
    // Modifier la valeur
    return false;
}

Actualités

Chargement des actualités...