Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q4 2024 cycle work #169

Open
wants to merge 30 commits into
base: dev
Choose a base branch
from
Open

Q4 2024 cycle work #169

wants to merge 30 commits into from

Conversation

kimcoleman
Copy link
Member

This is the branch we used to work on the Q4 cycle for this Add On. Here's a list of what was done:

  • Improved UI Consistency: Initial styling updates aligned with PMPro v3.1 standards.
  • Refactored Core Logic: Directory and profile templates now share unified logic for handling field display values using the core PMPro displayValue() method when possible.
  • Deprecated pmpro_member_directory_fields filter: in favor of more streamlined field handling. From now on, there will be more simplified shortcode attributes to list the elements you want to show, in the order you want them to show, with or without a label. Example: [pmpro_member_directory layout="3col" elements="avatar;display_name;Membership,membership_name"]
  • Structural Enhancements: Organized the plugin files for better maintainability.
  • Coding Standards and Simplifications: Cleaned up whitespace and adopted WordPress Coding Standards (WPCS)., Eliminated unnecessary query data and redundant filters.
  • Added Search Shortcode: People can now add the search form outside the directory or profile shortcode for better templating.
  • Added User Field Group for “Directory and Profile Preferences”. For now, this is where the “Hide from” checkbox will be.
  • Added better support the levels attribute on directory and on profile page: If we see a levels attribute, we now adjust what membership data we use for other attributes like membership_name or membership_startdate.

kimcoleman and others added 30 commits November 3, 2024 17:36
…-query-data

Removing unnecessary query data
Weave together logic for table and div directory displays
…recations

Initial work toward the improved directory and profile shortcodes; functions to get display values
…ling; fixing case where profile_url is not set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants