Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_row_actions

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
547                     if ( $post_type_object->public ) {
548                          if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) {
549                               if ( $can_edit_post )
550                                    $actions['view'] = '<a href="' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
551                          } elseif ( 'trash' != $post->post_status ) {
552                               $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
553                          }
554                     }
555
556                     $actions = apply_filters( is_post_type_hierarchical( $post->post_type ) ? 'page_row_actions' : 'post_row_actions', $actions, $post );
557                     echo $this->row_actions( $actions );
558
559                     get_inline_data( $post );
560                     echo '</td>';
561                break;
562
563                case 'date':
564                     if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
565                          $t_time = $h_time = __( 'Unpublished' );