WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
50 | <td class="media-icon"><?php echo wp_get_attachment_link($post->ID, array(80, 60), false, true); ?></td> |
51 | <?php |
52 | // TODO |
53 | break; |
54 |
|
55 | case 'media': |
56 | ?> |
57 | <td><strong><a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> |
58 | <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> |
59 | <?php do_action('manage_media_media_column', $post->ID); ?> |
60 | </td> |
61 | <?php |
62 | break; |
63 |
|
64 | case 'desc': |
65 | ?> |
66 | <td><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td> |
67 | <?php |
68 | break; |