From d77a851d5714df777dd125cf72993353a9aaa9d4 Mon Sep 17 00:00:00 2001 From: David Parker Date: Wed, 21 Feb 2024 13:07:36 -0500 Subject: [PATCH] Passing $item to get level ID being shown --- classes/class-pmpro-members-list-table.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/classes/class-pmpro-members-list-table.php b/classes/class-pmpro-members-list-table.php index 3c6a956df..5d7563a17 100644 --- a/classes/class-pmpro-members-list-table.php +++ b/classes/class-pmpro-members-list-table.php @@ -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 ); } }