Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_posts_custom_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
1450
1451           case 'control_delete':
1452           ?>
1453           <td><?php if ( current_user_can($post_type_object->cap->delete_post, $post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$id", 'delete-post_' . $post->ID) . "' class='delete'>" . __('Delete') . "</a>"; } ?></td>
1454           <?php
1455           break;
1456
1457           default:
1458           ?>
1459           <td <?php echo $attributes ?>><?php do_action('manage_posts_custom_column', $column_name, $post->ID); ?></td>
1460           <?php
1461           break;
1462      }
1463 }
1464 ?>
1465      </tr>
1466 <?php
1467      $post = $global_post;
1468 }