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



wp_get_attachment_link › Les Filtres WordPress

Depuis5.1.0
Dépréciéen/a
› apply_filters( 'wp_get_attachment_link', $link_html, $post, $size, $permalink, $icon, $text, $attr )
Paramètres: (7)
  • () link_html The page link HTML output.
    Requis: Oui
  • () post Post ID or object. Can be 0 for the current global post.
    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
  • () permalink Whether to add permalink to image. Default false.
    Requis: Oui
  • () icon Whether to include an icon.
    Requis: Oui
  • () text If string, will be link text.
    Requis: Oui
  • () attr Array or string of attributes.
    Requis: Oui
Défini(e) dans:
Codex:

Filters a retrieved attachment page link.





Source

return apply_filters( 'wp_get_attachment_link', $link_html, $post, $size, $permalink, $icon, $text, $attr );