A WordPress plugin that automatically creates Admin Columns Pro columns for each WooCommerce Memberships Profile Field on the wc_user_membership post type.
This plugin extends Admin Columns Pro to dynamically display WooCommerce Memberships Profile Fields as columns in the User Memberships admin list table. Each profile field gets its own column with full support for:
- Display: Shows profile field values from the membership owner's user meta
- Editing: Inline and bulk editing capabilities
- Export: CSV export support
- Search: Dropdown filters with all available values for easy filtering
- Sorting: Sort memberships by profile field values
- WordPress 5.0 or higher
- Admin Columns Pro 7.0 or higher
- WooCommerce Memberships (with profile fields configured)
- PHP 7.4 or higher
- Copy the plugin folder into your
wp-content/pluginsdirectory - Activate the plugin via the WordPress admin plugins page
- Navigate to Settings > Admin Columns in WordPress admin
- Select the User Memberships (
wc_user_membership) post type - Add columns - you'll see one column available for each WooCommerce Memberships Profile Field
The plugin automatically discovers WooCommerce Memberships Profile Fields by querying user meta keys that match the pattern _wc_memberships_profile_field_*. For each discovered profile field, it creates a column that:
- Retrieves values from the post author's (membership owner's) user meta
- Uses the meta key pattern:
_wc_memberships_profile_field_{slug} - Displays the profile field label as the column header
ac-column-template.php: Main plugin file that discovers profile fields and registers columns via AC's aggregate/classes/ColumnFactories/ProfileFieldsFactory.php: Column factory collection (one Column per profile field; same pattern as ACP's ACF addon)/classes/Column/Column.php: Column class with display logic/classes/Formatter/ValueFormatter.php: Formatter for list table and export display/classes/Column/Editing.php: Editing model for inline/bulk editing/classes/Column/Search.php: Search/filtering model/classes/Column/Sorting.php: Sorting model/css: CSS files (if needed)/js: JavaScript files (if needed)/languages: Translation files
- Profile field data is stored in
wp_usermetaon the membership owner's user account - The plugin joins
wp_posts.post_authorwithwp_usermeta.user_idto retrieve values - Each column has a unique type identifier based on the profile field slug
- Profile fields are discovered dynamically at column registration time
For more information about Admin Columns Pro, visit: https://docs.admincolumns.com/article/21-how-to-create-my-own-column
See CHANGELOG.md for a list of changes.