diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 47239b374a..243827dee7 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -124,6 +124,7 @@ function _cat_row( $category, $level, $name_override = false ) { $actions['inline hide-if-no-js'] = '' . __('Quick Edit') . ''; if ( $default_cat_id != $category->term_id ) $actions['delete'] = "term_id) . "'>" . __('Delete') . ""; + $actions = apply_filters('cat_row_actions', $actions, $category); $action_count = count($actions); $i = 0; $edit .= '
'; @@ -294,6 +295,7 @@ function link_cat_row( $category, $name_override = false ) { $actions['inline hide-if-no-js'] = '' . __('Quick Edit') . ''; if ( $default_cat_id != $category->term_id ) $actions['delete'] = "term_id) . "'>" . __('Delete') . ""; + $actions = apply_filters('link_cat_row_actions', $actions, $category); $action_count = count($actions); $i = 0; $edit .= '
'; @@ -623,6 +625,7 @@ function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) { $actions['edit'] = '' . __('Edit') . ''; $actions['inline hide-if-no-js'] = '' . __('Quick Edit') . ''; $actions['delete'] = "term_id) . "'>" . __('Delete') . ""; + $actions = apply_filters('tag_row_actions', $actions, $tag); $action_count = count($actions); $i = 0; $out .= '
'; @@ -1399,6 +1402,7 @@ function _post_row($a_post, $pending_comments, $mode) { } else { $actions['view'] = '' . __('View') . ''; } + $actions = apply_filters('post_row_actions', $actions, $post); $action_count = count($actions); $i = 0; echo '
'; @@ -1594,6 +1598,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) { } else { $actions['view'] = '' . __('View') . ''; } + $actions = apply_filters('page_row_actions', $actions, $page); $action_count = count($actions); $i = 0; @@ -1832,6 +1837,7 @@ function user_row( $user_object, $style = '', $role = '' ) { $actions['edit'] = '' . __('Edit') . ''; if ( $current_user->ID != $user_object->ID ) $actions['delete'] = "" . __('Delete') . ""; + $actions = apply_filters('user_row_actions', $actions, $user_object); $action_count = count($actions); $i = 0; $edit .= '
';