Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: attachment_innerHTML

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1995      $id = (int) $id;
1996      if ( !$post = get_post($id) )
1997           return false;
1998
1999      if ( $innerHTML = get_attachment_icon($post->ID, $fullsize, $max_dims))
2000           return $innerHTML;
2001
2002      $innerHTML = esc_attr($post->post_title);
2003
2004      return apply_filters('attachment_innerHTML', $innerHTML, $post->ID);
2005 }
2006
2007 /**
2008  * Retrieves bookmark data based on ID.
2009  *
2010  * @since 2.0.0
2011  * @deprecated 2.1.0 Use get_bookmark()
2012  * @see get_bookmark()
2013  *