Display order transaction IDs and allow search by ID in the WordPress admin #386
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Migrating snippet to library: https://gist.github.com/strangerstudios/898055f2d6f5a9676bf1
Resolved PHP warnings that would occur when searching by Transaction ID on members list page:
Undefined array key "display_name"
Undefined array key "s"
Removed code to add Subscription Transaction IDs to Members List CSV export. PMPro core already includes this column.
Updated to use newer
pmpro_manage_memberslist_columns
andpmpro_manage_memberslist_custom_column
instead ofpmpro_memberslist_extra_cols_header
andpmpro_memberslist_extra_cols_body
hooks.Now compatible with multiple memberships per user. With original snippet, if a member has multiple memberships, the member's most recent transaction ID would display in all of their membership rows in the Members List and Export CSV.
Added some escaping and WPCS.