wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
the_attachment_link › WordPress Function
Depuis2.0.0
Dépréciéen/a
› the_attachment_link ( $post = 0, $fullsize = false, $deprecated = false, $permalink = false )
| Paramètres: (4) |
|
| Défini(e) dans: |
|
| Codex: |
Displays an attachment page link using an image or icon.
Fonctions en relation: the_attachment_links, get_the_attachment_link, get_attachment_link, wp_get_attachment_link, _fix_attachment_links
Source
function the_attachment_link( $post = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
if ( ! empty( $deprecated ) ) {
_deprecated_argument( __FUNCTION__, '2.5.0' );
}
if ( $fullsize ) {
echo wp_get_attachment_link( $post, 'full', $permalink );
} else {
echo wp_get_attachment_link( $post, 'thumbnail', $permalink );
}
}