Skip to content

Commit

Permalink
Passing $item to get level ID being shown
Browse files Browse the repository at this point in the history
  • Loading branch information
dparker1005 committed Feb 21, 2024
1 parent 3de8fd2 commit d77a851
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion classes/class-pmpro-members-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,16 @@ public function column_default( $item, $column_name ) {
}
} else {
// The preferred ways of doing things.
do_action( 'pmpro_manage_memberslist_custom_column', $column_name, $item['ID'] );
/**
* Fill in columns that don't have a built-in method.
*
* @since TBD
*
* @param string $column_name The name of the column.
* @param int $user_id The ID of the user.
* @param array $item The membership data being shown.
*/
do_action( 'pmpro_manage_memberslist_custom_column', $column_name, $item['ID'], $item );
}
}

Expand Down

0 comments on commit d77a851

Please sign in to comment.