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 |
|---|---|
| 1539 | |
| 1540 | case 'control_delete': |
| 1541 | ?> |
| 1542 | <td><?php if ( current_user_can('delete_post', $post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&post=$id", 'delete-post_' . $post->ID) . "' class='delete'>" . __('Delete') . "</a>"; } ?></td> |
| 1543 | <?php |
| 1544 | break; |
| 1545 | |
| 1546 | default: |
| 1547 | ?> |
| 1548 | <td <?php echo $attributes ?>><?php do_action('manage_posts_custom_column', $column_name, $post->ID); ?></td> |
| 1549 | <?php |
| 1550 | break; |
| 1551 | } |
| 1552 | } |
| 1553 | ?> |
| 1554 | </tr> |
| 1555 | <?php |
| 1556 | $post = $global_post; |
| 1557 | } |