wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
get_attachment_innerhtml is deprecated since version 2.5.0!
Alternative: Ver página de detalhe para wp_get_attachment_image »" href="https://pt.wpseek.com/function/wp_get_attachment_image/">wp_get_attachment_image()
Alternative: Ver página de detalhe para wp_get_attachment_image »" href="https://pt.wpseek.com/function/wp_get_attachment_image/">wp_get_attachment_image()
get_attachment_innerhtml › WordPress Function
Desde2.0.0
Obsoleto2.5.0
› get_attachment_innerhtml ( $id = 0, $fullsize = false, $max_dims = false )
| Parâmetros: (3) |
|
| Ver: | |
| Retorna: |
|
| Definido em: |
|
| Codex: |
Retrieve HTML content of image element.
Funções relacionadas: get_attachment_icon, get_attachment_link, get_attachment_icon_src, get_attachment_template, wp_get_attachment_url
Fonte
function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) {
_deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' );
$id = (int) $id;
if ( !$post = get_post($id) )
return false;
if ( $innerHTML = get_attachment_icon($post->ID, $fullsize, $max_dims))
return $innerHTML;
$innerHTML = esc_attr($post->post_title);
return apply_filters('attachment_innerHTML', $innerHTML, $post->ID);
}