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
932      if ( !$post = & get_post($id) )
933           return false;
934
935      if ( $innerHTML = get_attachment_icon($post->ID, $fullsize, $max_dims))
936           return $innerHTML;
937
938
939      $innerHTML = attribute_escape($post->post_title);
940
941      return apply_filters('attachment_innerHTML', $innerHTML, $post->ID);
942 }
943
944 /**
945  * Wrap attachment in <<p>> element before content.
946  *
947  * @since 2.0.0
948  * @uses apply_filters() Calls 'prepend_attachment' hook on HTML content.
949  *
950  * @param string $content