=== Ultimate Member - Profile Completeness ===
Author URI: https://ultimatemember.com
Plugin URI: https://ultimatemember.com/extensions/profile-completeness/
Contributors: nsinelnikov
Tags: profile completeness, user-profile, user-registration
Requires at least: 5.5
Tested up to: 6.7
Stable tag: 2.3.2
License: GNU Version 2 or Any Later Version
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
Requires UM core at least: 2.9.0

With the profile completeness extension you can encourage or force users to complete their profiles. This is one of the best ways to ensure people engage on your site and ensures you do not have a site full of empty user profiles.

== Description ==

With the profile completeness extension you can encourage or force users to complete their profiles. This is one of the best ways to ensure people engage on your site and ensures you do not have a site full of empty user profiles.

= Features of the plugin include: =

* Display profile fields a user has yet to complete and progress bar via sidebar widgets
* Users can complete profile fields via pop-up anywhere on site or can go to profile to complete the fields
* Force users to complete their profile by redirecting them to their edit profile page until they have completed their profile
* Only show users in member directory who have completed their profile (you can set what % limit is applied)
* Decide which fields are to be included for profile completion
* Set what % each field contributes to completion (e.g gender is worth 5%, country is worth 10%)
* Widgets disappear once a user completes their profile
* Decide which user roles to turn profile completeness on for
* Set unique fields for each role
* Display profile progress bar anywhere on site using shortcodes
* Restrict users from commenting on posts until they have completed their profile
* Restrict users from creating topics and replying on bbPress forums until they have completed their profile
* Restrict users from viewing other user profiles until they have completed their profile
* Decide what level of profile completion is required until a user is no longer restricted

Read about all of the plugin's features at [Ultimate Member - Profile Completeness](https://ultimatemember.com/extensions/profile-completeness/)

= Documentation & Support =

Got a problem or need help with Ultimate Member? Head over to our [documentation](http://docs.ultimatemember.com/article/189-profile-completeness-setup) and perform a search of the knowledge base. If you can’t find a solution to your issue then you can create a topic on the [support forum](https://wordpress.org/support/plugin/ultimate-member).

== Installation ==

1. Activate the plugin
2. That's it. Go to Ultimate Member > User Roles > Select the role > Profile Completeness section to customize plugin options
3. For more details, please visit the official [Documentation](http://docs.ultimatemember.com/article/189-profile-completeness-setup) page.

== Changelog ==

= Important: 2.1.1+ version is compatible with Ultimate Member 2.0.56+ version and Ultimate Member - User Tags 2.0.9+ =

= 2.3.2: November 18, 2024 =

* Added: Compatibility with Ultimate Member 2.9.0 and Action Scheduler for email sending
* Fixed: "Load textdomain just in time" issue

= 2.3.1: September 30, 2024 =

* Removed: `UM()->fields()->get_restricted_fields_for_edit()` function from a fields loop
* Tweak: Compatibility with the future new UI

= 2.3.0: April 30, 2024 =

* Fixed: Underscore.js templates when block theme is active
* Fixed: 'prevent_forumwp' condition checking without UM -ForumWP extension
* Tweak: Added Ultimate Member as required plugin

* Templates required update:

  - js-widget.php

= 2.2.9: February 21, 2024 =

* Fixed: Date field init in profile completeness popup
* Fixed: Integration with Member directory
* Tweak: Enhancements related to WPCS

= 2.2.8: December 11, 2023 =

* Tweak: wp-admin scripts refactored
* Tweak: Using enqueue scripts suffix from UM core class. Dependency from UM core 2.7.0
* Tweak: Enhancements related to WPCS

* Templates required update:

  - completeness-bar.php

= 2.2.7: October 11, 2023 =

* Updated: Dependencies versions based on the recent changes for `UM()->frontend()->enqueue()::get_suffix();`
* Fixed: Made redirect safe
* Fixed: Case when extension isn't active based on dependency, but we can provide the license key field

= 2.2.6: September 13, 2023 =

* Fixed: Getting the user on profile page
* Fixed: Progress bar and completeness widget

= 2.2.5: August 29, 2023 =

* Added: Redirect option after completing your profile
* Fixed: Removed `extract()`
* Fixed: Added `shortcode_atts()`
* Fixed: Fields `billing_state` and `shipping_state` in popup
* Fixed: Issue with lack of the nonces
* Tweak: Standardize the condition for checking not editable fields to `empty( $data['editable'] )`

= 2.2.4: June 02, 2023 =

* Fixed: PHP warnings
* Fixed: select2 init in popup
* Tweak: Cron enhancement don't run if email is disabled
* Tweak: Template overwrite versioning

= 2.2.3: December 20, 2021 =

* Added: Reminder email for users who did not complete their profiles
* Fixed: Extra slashes in the field's title in the profile completeness widget
* Fixed: PHP warnings if the current user hasn't settings for profile completeness

= 2.2.2: September 22, 2021 =

* Added: Profile page reload if profile is changed
* Added: Profile page reload on popup closing by skip

= 2.2.1: July 20, 2021 =

* Added: Hook for restrict text for posting in group
* Added: Restricted text for ForumWP
* Added: Fields validation on save profile progress popup
* Fixed: wp-admin Users screen with progress data
* Tweak: WP5.8 widgets screen compatibility

= 2.2.0: April 28, 2021 =

* Added: Integration with ForumWP
* Added: Filter hook `um_profile_completeness_fields_array_for_titles` for changing fields titles programmatically
* Fixed: Using uppercase symbols in usermeta keys conflicts with `sanitize_key()` function, used `sanitize_text_field()` instead
* Fixed: Integration with User Locations extension
* Tweak: Rewritten the integration with Groups and bbPress extensions

= 2.1.9: March 29, 2021 =

* Added: Percent validations in the Role Add/Edit screen Profile Completeness metabox
* Fixed: Role Add/Edit screen Profile Completeness metabox
* Fixed: Moving uploaded files via Profile Completeness widget and popup to the user's folder
* Tweak: WordPress 5.7 compatibility

= 2.1.8: December 24, 2020 =

* Fixed: Fields list used for completeness progress fields

= 2.1.7: December 8, 2020 =

* Fixed: Duplicate completeness calculation of the profile photo field (image and gravatar)
* Fixed: Completeness calculation for the field type 'checkbox'
* Fixed: Using uppercase metakeys for the fields in the profile completion
* Fixed: CSS issues with border-radius and completed bar

= 2.1.6: August 11, 2020 =

* Added: Translation file .pot
* Added: An integration for 3rd-party fields
* Fixed: An integration with user tags fields for completeness
* Fixed: Hook for getting progress
* Tweak: apply_shortcodes() function support

= 2.1.5: April 1, 2020 =

* Added: JS template for profile completeness widget
* Fixed: Profile complete via widget upgrade widget without reload
* Fixed: Completeness filters at the Member Directory

= 2.1.4: January 13, 2020 =

* Tweak: Integration with Ultimate Member 2.1.3 and UM metadata table
* Added: Integration with "Ultimate Member - MailChimp"
* Fixed: Widget 'Ultimate Member - Profile Progress Bar'

= 2.1.3: November 14, 2019 =

* Fixed: update user meta for not multi-array field types

= 2.1.2: November 11, 2019 =

* Added: [um_profile_completeness_related_text] shortcode
* Added: ability to change templates in theme via universal method UM()->get_template()
* Added: Sanitize functions for request variables
* Added: esc_attr functions to avoid XSS vulnerabilities

= 2.1.1: August 21, 2019 =

* Fixed: Compatibility with User Tags

= 2.1.0: March 1, 2019 =

* Fixed: Completeness profile with empty user meta

= 2.0.9: February 8, 2019 =

* Added: Page restriction via profile completeness
* Fixed: Use Gravatar disable completeness

= 2.0.8: January 24, 2019 =

* Fixed: Changed role notification

= 2.0.7: November 26, 2018 =

* Fixed: Open modal window for profile completeness widget

= 2.0.6: November 12, 2018 =

* Fixed: Profile Completeness field types progress
* Optimized: JS/CSS enqueue

= 2.0.5: October 3, 2018 =

* Fixed: JS enqueue
* Fixed: New translation files

= 2.0.4: May 22, 2018 =

* Fixed: Translations for widget fields

= 2.0.3: May 2, 2018 =

* Fixed: Duplicates IDs in Profile Completeness widget
* Fixed: Profile Completeness widget

= 2.0.2: April 30, 2018 =

* Added: Loading translation from "wp-content/languages/plugins/" directory

= 2.0.1: March 16, 2018 =

* Tweak: UM2.0 compatibility

= 1.2.0: January 25, 2016 =

* Fixed: Remove error notices

= 1.1.9: December 15, 2015 =

* Fixed: target percentage

= 1.1.8: December 11, 2015 =

* Tweak: compatibility with WP 4.4

= 1.1.7: December 8, 2015 =

* Fixed: WP role sync conflict
* Fixed: compatibility with WordPress 4.3
* Fixed: profile completeness should appear to profile owner only
* Fixed: bug with saving fields in profile completeness modal
