wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
the_attachment_link › WordPress Function
Da2.0.0
Deprecaton/a
› the_attachment_link ( $post = 0, $fullsize = false, $deprecated = false, $permalink = false )
| Parametri: (4) |
|
| Definito a: |
|
| Codex: |
Displays an attachment page link using an image or icon.
Funzioni correlate: the_attachment_links, get_the_attachment_link, get_attachment_link, wp_get_attachment_link, _fix_attachment_links
Sorgenti
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 );
}
}