Skip to content

Commit

Permalink
Merge pull request #2857 from dparker1005/memberlist-pass-level-to-ac…
Browse files Browse the repository at this point in the history
…tions

Passing $item to get level ID being shown
  • Loading branch information
ideadude authored Feb 21, 2024
2 parents 5b07999 + d77a851 commit 0855d48
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 0855d48

Please sign in to comment.