What’s new in WP Customer Area 7.10.0?

3 November 2020
261 Views

We are happy to announce a big update as of WP Customer Area 7.10.0. It’s mostly about User Experience improvements, but not only that! Since our 7.9.0 version, there have been many improvements in the design, but also many patches: 21 new features and over 30 bug fixes and tweaks. For example, you can now search for attachments inside private files using the search add-on. There are some new custom fields placeholders in the notifications add-on. According to your feedbacks, we fixed many issues related to PHP sessions, 404 errors, permission errors and more. Check our article and changelogs below for more information.

Design enhancements

We improved the design to make it more elegant on large containers. Let’s say your theme includes a full-width template that you use with WP Customer Area, the area should now fit better on some pages, like the user profile page.

wp account profile page with masonry
Rebuilt the profile page styling

You will also find some improvements into single content pages, where we reorganized the block into columns. The good thing is that the number of columns will be automatically calculated from the width of the container where WP Customer Area is inserted, and not the device viewport anymore. That should prevent the system to generate a large number of columns on large screens, where the container is only 600px wide. You can see below how a project page may now look like.

wp private project collaboration new design
Single posts extra contents reorganized into columns

On those last screenshots, you may also have noticed a “Project notes” panel, or even some never seen fields on the profile page. Those fields are actually just made from custom ACF fields and our ACF Integration add-on. Fields are now rendered automatically into columns.

You may also have noticed that the top area is larger than the content area. This is because we introduced 4 new filters that you can customize to set the maximum global area width, the maximum content width, the maximum form pages width, and to display or not the post titles.

Third-party plugins integration

You were actually not able to include external plugins into the area because we were resetting the styles to make sure that your theme would not affect the area and creates graphical issues.

To avoid that, we created a new filter to disable CSS overrides into the area that will allow integration of third-party plugins (like page builders). Activating this filter may probably generate a few graphical issues from your theme (because all theme’s CSS styles are made differently). However, if it works for you, then you should be able to start using some basic plugins like a Google re-captcha with our authentication forms add-on.

This filter is already activated into the DIVI compatibility add-on, which allows compatibility with the DIVI Builder plugin, as shown in the below screenshot.

divi builder and wp customer area integration
DIVI builder and WP Customer Area integration

However, you should be warned about those few things:

  • The content you will add using some page builders as an administrator may generate a lot of unreadable shortcodes. If your users are able to edit the post on the frontend, they will see all those shortcodes and won’t understand what to do with them.
  • Users can’t use the page builders because they need the edit_post WP capability.
  • Page builders may allow you to insert various things such as media attachments. Be warned that those attachments will be inserted in your wp-uploads directory, which means that those files won’t be secured if a user is aware of its direct URL.

Search files attachments

You can now search for filename inside private files posts.

private files search by name
Search for filenames inside private posts

Using ACF fields or post_meta in notifications templates

We created some new dynamic notification placeholders that you can use to grab some post_metas or user_metas data and use them in your notifications templates.

They can be found in Settings -> WP Customer Area -> Notifications > Individual notification settings > Available placeholders. You will find:

  • {{post_meta,my_meta}} The value of the meta data « my_meta » linked to the private content
  • {{to_meta,my_meta}} The value of the meta data « my_meta » linked to the recipient of the notification
  • {{user_meta,my_meta}} The value of the meta data « my_meta » linked to the person who submitted the authentication form

Let’s say you created a ACF user field named vat. In your notification template, you could write this:

Your VAT number is: {{to_meta,vat}}

Full changelogs

= 7.10.0 (2020/10/28) =

  • New: better design for single content views using Masonry
  • New: add a “year archives” link in date archives widgets for each year
  • New: bootstrap columns will now depend on the CUAR container width instead of the viewport
  • New: filter cuar/private-content/view/max-width for private-contents (default to theme $content_width)
  • New: filter cuar/private-content/view/show-post-title to be able to display post titles (default to false)
  • New: filter cuar/private-content/view/max-width-for-pages for private-pages (default to null)
  • New: filter cuar/private-content/view/max-width-for-forms for private-forms (front-office publishing – default to 1080)
  • New: filter cuar/private-content/view/disable-css-resets to allow integration of third party plugins into the area (default to false)
  • New: show display name when avatar are disabled instead of the avatar icon in user menu
  • New: added new AR language files (thanks to translators : Hani Seddi, OmarRi and Wafaa Sayed)
  • Fix: switch PHP sessions to database sessions (should avoid login loops, site health checks, and other issues)
  • Fix: review wp_reset_query vs wp_reset_postdata sometimes not properly used
  • Fix: avatar image sometimes displayed at a wrong size
  • Fix: console warnings about missing *.map files
  • Fix: some categories were not showing up anymore
  • Fix: flashing mobile menu while collapsing
  • Fix: possible issue leading in author posts not displayed even if not hidden in options
  • Tweak: reworked the responsive engine which should lead in better performance and faster page load
  • Tweak: protect post types from being public, do not allow accessing private contents via URL
  • Tweak: also load alternate localization file named with plugin name

Add-on changes

  • DIVI Theme compatibility – New: layout has been reworked to be more elegant on large screens
  • DIVI Theme compatibility – New: compatibility with the DIVI Builder plugin
  • DIVI Theme compatibility – New: CSS resets has been disabled for DIVI, which allows integration of any third-party plugin into the Customer Area
  • DIVI Theme compatibility – New: private contents are now displaying the post title
  • DIVI Theme compatibility – New: filter cuar/private-content/view/max-width for private-contents (default to DIVI theme $content_width)
  • DIVI Theme compatibility – New: automatic tray positioning and content height calculation (DIVI footer will be pinned on bottom screen for better display)
  • DIVI Theme compatibility – New: using filter cuar/private-content/view/disable-css-resets to allow integration of third party plugins into the area
  • Search – New: Allow searching for attachments inside private files
  • Notifications – New: Replace placeholder notifications using post meta {{post_meta,my_meta}} and user meta values {{user_meta,my_meta}} + {{to_meta,my_meta}}
  • ACF Integration – New: support for ACF v5.9.x
  • ACF Integration – New: better layout for rendering ACF custom fields in account pages and private content posts
  • ACF Integration – New: fields for private content posts will now be shown using Masonry but require to be inserted in a field group
  • ACF Integration – New: added compatibility with ID, Width & Class ACF field options
  • ACF Integration – Fix: repeater field markup
  • ACF Integration – Fix: flexible content field markup
  • ACF Integration – Tweak: update ACF styles for ACF post_type fields
  • Switch Users – Fix: switch PHP sessions to database sessions (should avoid login loops, site health checks, and other issues)
  • Switch Users – Fix: console warnings about missing *.map files
  • Terms Of Service – Fix: switch PHP sessions to database sessions (should avoid login loops, site health checks, and other issues)
  • Terms Of Service – Fix: console warnings about missing *.map files
  • Tasks – Fix: potential crash call to getSlug() on a bool
  • Tasks – Tweak: protect post types from being public, do not allow accessing private contents via URL
  • Projects – Tweak: protect post types from being public, do not allow accessing private contents via URL
  • Invoicing – Tweak: protect post types from being public, do not allow accessing private contents via URL
  • Design Extras – Tweak: Support for new styles from WP Customer Area 7.10.0
  • Content Expiry – Fix: add-on was causing some permission denied errors like “private content is not accessible”
  • Content Expiry – Fix: console warnings about missing *.map files
  • Conversations – Fix: add-on was causing some permission denied errors like “private content is not accessible”
  • Conversations – Fix: fixed line-breaks not working when replying on frontend
  • Conversations – Tweak: protect post types from being public, do not allow accessing private contents via URL

= 7.9.2 (2020/06/25) =

  • Fix: Hotfix, some styles and image alignments were not correctly applied

Add-on changes

  • Design Extras – Fix: Hotfix, some styles and image alignments were not correctly applied

= 7.9.1 (2020/06/24) =

  • Fix: Hotfix, wrong version set for Additional Owner Types, generating a warning in the admin area