Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_media_media_column

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
46           <td class="media-icon"><?php echo wp_get_attachment_link($post->ID, array(80, 60), false, true); ?></td>
47           <?php
48           // TODO
49           break;
51      case 'media':
52           ?>
53           <td><strong><a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), get_the_title())); ?>"><?php the_title(); ?></a></strong><br />
54           <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
55           <?php do_action('manage_media_media_column', $post->ID); ?>
56           </td>
57           <?php
58           break;
60      case 'desc':
61           ?>
62           <td><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
63           <?php
64           break;