wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
the_attachment_link › WordPress Function
Desde2.0.0
Obsoleton/a
› the_attachment_link ( $post = 0, $fullsize = false, $deprecated = false, $permalink = false )
| Parâmetros: (4) |
|
| Definido em: |
|
| Codex: |
Displays an attachment page link using an image or icon.
Funções relacionadas: the_attachment_links, get_the_attachment_link, get_attachment_link, wp_get_attachment_link, _fix_attachment_links
Fonte
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 );
}
}