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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
704                           * The filter is evaluated only for non-hierarchical post types.
705                           *
706                           * @since 2.8.0
707                           *
708                           * @param array   $actions An array of row action links. Defaults are
709                           *                         'Edit', 'Quick Edit', 'Restore, 'Trash',
710                           *                         'Delete Permanently', 'Preview', and 'View'.
711                           * @param WP_Post $post    The post object.
712                           */
713                          $actions = apply_filters( 'post_row_actions', $actions, $post );
714                     }
715
716                     echo $this->row_actions( $actions );
717
718                     get_inline_data( $post );
719                     echo '</td>';
720                break;
721
722                case 'date':