wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



image_downsize › Les Filtres WordPress

Depuis2.5.0
Dépréciéen/a
› apply_filters( 'image_downsize', false, $id, $size )
Paramètres: (3)
  • () downsize Whether to short-circuit the image downsize.
    Requis: Oui
  • () id Attachment ID for image.
    Requis: Oui
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Requis: Oui
Défini(e) dans:
Codex:

Filters whether to preempt the output of image_downsize().

Returning a truthy value from the filter will effectively short-circuit down-sizing the image, returning that value instead.




Source

$out = apply_filters( 'image_downsize', false, $id, $size );