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 |
---|---|
69 | if ( ( 'future' == $post->post_status) ) |
70 | $h_time = sprintf( __('%s from now'), human_time_diff( $time ) ); |
71 | else |
72 | $h_time = sprintf( __('%s ago'), human_time_diff( $time ) ); |
73 | } else { |
74 | $h_time = mysql2date(__('Y/m/d'), $m_time); |
75 | } |
76 | } |
77 | ?> |
78 | <td><abbr title="<?php echo $t_time ?>"><?php echo apply_filters('post_date_column_time', $h_time, $post, $column_name) ?></abbr></td> |
79 | <?php |
80 | break; |
81 | case 'title': |
82 | ?> |
83 | <td><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="post.php?action=edit&post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; } ?></strong> |
84 | <?php if ( !empty($post->post_password) ) { _e(' — <strong>Protected</strong>'); } elseif ('private' == $post->post_status) { _e(' — <strong>Private</strong>'); } ?></td> |
85 | <?php |
86 | break; |
87 |
|