Releases: strangerstudios/pmpro-member-directory
Releases · strangerstudios/pmpro-member-directory
2.0 - 2025-02-26
- FEATURE: Added support for an “elements” attribute on the directory and profile shortcodes to allow total customization of the displayed content and order it is displayed. This attribute will replace several true/false attributes as well as the “fields” attribute in a future update. #169 (@kimcoleman)
- FEATURE: Added a new
[pmpro_member_directory_search]
shortcode to allow placing the search form outside of the directory or profile. #169 (@kimcoleman) - ENHANCEMENT: Updated styling for PMPro v3.1. #169 (@kimcoleman)
- ENHANCEMENT: Added a User Field Group for "Directory and Profile Preferences". #169 (@kimcoleman)
- ENHANCEMENT: Improved how user fields are displayed in directories and profiles. #169 (@kimcoleman)
- ENHANCEMENT: Added a new filter
pmpromd_get_display_value
to allow customizing the display value of user fields. #172 (@kimcoleman) - BUG FIX/ENHANCEMENT: Improved logic to determine which level to show information for on profiles when users have multiple levels. #169 (@kimcoleman)
- BUG FIX: Fixed a fatal error that may show when viewing a directory or profile without the core PMPro plugin enabled. #176 (@dparker1005)
- BUG FIX: Fixed an issue where pretty permalinks would not work on subfolder WordPress installs. #168 (@kimcoleman)
- REFACTOR: Cleaned up plugin files and WPCS fixes. #169 (@kimcoleman)
- DEPRECATED: Deprecated the
pmpro_member_directory_fields
filter. Usepmpro_member_directory_elements
instead. #169 (@kimcoleman) - DEPRECATED: Marked billing addresses as deprecated. Directory addresses should be stored separately from billing addresses as they may not be the same. #173 (@dparker1005)
1.2.6 - 2024-02-19
- SECURITY: Improved security around shortcode attributes to prevent SQL injection.
1.2.5 - 2024-02-14
- SECURITY: Improved security around using the Directory and Profile shortcode or block to only be used by users that have are able to edit the relevant content and edit_users capability. (@andrewlimaza)
- REFACTOR: Moved from pmpro_getOption to get_option for better compatibility. (@JarrydLong)
- REFACTOR: Improved accessibility for screen readers by adjusting the HTML header sizes. (@kimwhite)
- BUG FIX: Fixed an issue where fields that had default blank values would show up on the profile page (@ipokkel)
v1.2.4 - 2023-06-28
- ENHANCEMENT: Improved pagination style to display page numbers instead of ... (@JarrydLong)
- ENHANCEMENT: Improved output on custom fields label values for value => label type of fields. (@andrewlimaza)
- ENHANCEMENT: Improved compatibility with Multiple Memberships Per User. Shows the oldest start date if a user has multiple levels (@dparker1005)
- BUG FIX: Fixed an issue where using the [membership] shortcode would redirect to the directory page. (@andrewlimaza)
- BUG FIX: Fixed an issue where the auto embedding functionality would incorrectly embed custom fields.(@andrewlimaza)
v1.2.3 - 2022-08-05
- BUG FIX/ENHANCEMENT: Better profile page checks prevent issues with rewrite rules. (@ideadude & @kimcoleman)
V1.2.2 - 2022-07-07
- BUG FIX: Fixed issue when profile page was nested within a nested page (Thanks @JarrydLong)
- BUG FIX: Fixed fatal error when Paid Memberships Pro plugin wasn't active. (Thanks @JarrydLong)
- BUG FIX: Fixed a layout issue conflict on the directory page for the Membership Maps Add On being included in the div container and now displays it correctly. (Thanks @JarrydLong)
- BUG FIX: Fixed warnings of undefined variables when navigating to a profile page of a non-existing user. (Thanks @ipokkel)
- REFACTOR: Adjusted incorrect docblock variable for the format the profile field method. (Thanks @ipokkel)
v1.2.1
- ENHANCEMENT: Added small sanitization check for query parameter values.
- BUG FIX: Fixed issue where passing "user_id" attribute in shortcode was returning empty results.
- BUG FIX: Removed debug code that was causing minor output issues.
V1.2
- ENHANCEMENT: General improvements to localization and translatable strings.
- ENHANCEMENT: Improvement to profile pretty permalinks structure that's more SEO friendly (e.g. membership-account/profile/admin/). Automatically flush permalinks when needed in admin area.
- ENHANCEMENT: Improved handling of clickable links, we try to automatically embed custom fields first or fallback to clickable URL fields.
- ENHANCEMENT: pmpro_get_element_class implemented on directory and profile pages to load HTML classes as needed.
- ENHANCEMENT: Added "Edit Profile" link for administrators when viewing the profile page. Redirects to the edit profile WordPress page.
- ENHANCEMENT: New filter
pmpromd_try_oembed_url
added to allow trying to embed possible fields first. Set this false if you don't want to automatically embed embeddable URL's. - ENHANCEMENT: New filter
pmpromd_format_profile_field
added to allow how to format any fields that may be clickable and allows custom output for fields. - ENHANCEMENT: New filter
pmpromd_user_identifier
added to allow how to identify/retrieve the user information. Defaults to "slug" (user_nicename) or can use user ID to retrieve relevant information in the directory or profile page. - ENHANCEMENT: New filter
pmpro_member_directory_sql_search_where
added to allow filtering of search WHERE SQL conditions to offer more specific search results. - ENHANCEMENT: Profile page title no longer changes to the user's name.
- ENHANCEMENT: Improved the displaying of level dependent custom fields.
- BUG FIX: Fixed issue where pagination would cause issues with search. (Thanks @jcotter).
V1.1
- BUG FIX: Fixed issue where saving "hide from directory" wasn't saving on the front-end profile page.
- BUG FIX: Fixed issue where profile page wasn't showing user information (fields) correctly.
V1.0
- BUG FIX/ENHANCEMENT: Moved
pmpro_member_directory_after
outside div container for better styling with Membership Maps. - ENHANCEMENT: Added new filter to adjust user display name on directory and profile page.
pmpro_member_directory_display_name
. - ENHANCEMENT: New filter added to allow PHP to adjust the user results further.
pmpromd_user_directory_results
. - ENHANCEMENT: Updated webpack configuration to use wp-scripts package.
- ENHANCEMENT: Added an 'edit' link if user is viewing their own profile. New filter added 'pmpromd_member_profile_action_links'.
- ENHANCEMENT: New hooks added to templates - 'pmpro_member_profile_before', 'pmpro_member_directory_before' and 'pmpro_member_directory_after'.
- ENHANCEMENT: Removed semi-colon from field label where it was automatically being displayed. User's now can manually add this in if needed.