Skip to content

Commit

Permalink
Rename actions and filters per Daniel's suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfg committed Nov 13, 2012
1 parent 4621e56 commit 47c605b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions php/class-coauthors-wp-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function prepare_items() {
'first_name' => array( 'first_name', 'ASC' ),
'last_name' => array( 'last_name', 'ASC' ),
);
$_sortable = apply_filters( "manage_coauthors_guest_author_sortable_columns", $this->get_sortable_columns() );
$_sortable = apply_filters( "coauthors_guest_author_sortable_columns", $this->get_sortable_columns() );

foreach( (array)$_sortable as $id => $data ) {
if ( empty( $data ) )
Expand Down Expand Up @@ -148,7 +148,7 @@ function get_columns() {
'posts' => __( 'Posts', 'co-authors-plus' ),
);

$columns = apply_filters( "manage_coauthors_guest_author_columns", $columns );
$columns = apply_filters( "coauthors_guest_author_manage_columns", $columns );
return $columns;
}

Expand Down Expand Up @@ -178,7 +178,7 @@ function column_default( $item, $column_name ) {
return '<a href="' . esc_attr( 'mailto:' . $item->user_email ) . '">' . esc_html( $item->user_email ) . '</a>';

default:
do_action( "manage_coauthors_guest_author_custom_column", $column_name, $item->ID );
do_action( "coauthors_guest_author_custom_columns", $column_name, $item->ID );
break;
}
}
Expand Down

0 comments on commit 47c605b

Please sign in to comment.