Commit Graph

47 Commits

Author SHA1 Message Date
Mykyta Synelnikov fbcd08ed71 Add user approval action upon email confirmation. Reviewed PR #1776
Introduced a new action `um_approve_user_on_email_confirmation` to enable user approval after verifying the email activation link. Refactored related logic to enhance extensibility and allow developers to hook custom behavior post-approval.
2026-02-09 10:50:01 +02:00
Mykyta Synelnikov bcfdbb954d Refactor email placeholders and deprecate obsolete methods
Streamline placeholder handling for emails by introducing universal patterns and replacements, and update email dispatch functions for efficiency. Deprecated various redundant user and password-related methods, consolidating logic into common utility classes for better maintainability.
2025-05-19 14:26:39 +03:00
Mykyta Synelnikov 2f18dccd09 Refactor email activation flow in Ultimate Member.
Improved readability and clarity of the email activation process by updating comments and restructuring conditional checks. Added hooks and filters for better customization, including redirect URL filtering. Replaced `wp_redirect` with `um_safe_redirect` for safer redirection handling.
2025-02-28 14:21:54 +02:00
yuriinalivaiko 945ed3775a Task CU-86cy0809h
- fixed redirect to the Password Change page after the account activation.
2025-02-14 21:57:47 +02:00
Mykyta Synelnikov 8d33c43130 Fixes 'um_dispatch_email' action #1589
* Sending email notifications directly (without Action Scheduler) on user delete action;
* Changed activation handler priority for integration with Action Scheduler
* Added 'fetch_user_id' argument for fetching the necessary user before email sending when Action Scheduler is active.
2024-11-19 17:48:10 +02:00
Mykyta Synelnikov 1cbbb70a03 * added security condition to check that one logged-in user cannot activate another one user via email activation link;
* fixed double handler of email activation link (wp_die doesn't stop the script for some reason);
* added redirects to login page with error notices instead of wp_die text;
2024-10-11 18:47:40 +03:00
Mykyta Synelnikov 35e3727bca * added force attribute to change user status actions for ignore current user condition in some cases; 2024-09-27 15:41:01 +03:00
Mykyta Synelnikov 512dc53a18 - changed wp-admin > Users page;
* updated filters by status, avoid slow queries for getting users count;
* updated bulk-actions for changing statuses (moved to WP native dropdown)
* separate handlers for changing user statuses on wp-admin and frontend (partially implemented);
* created class UM()->common()->users() to handle user statuses in more clear format;
* deprecated old hooks and old functions
2024-09-20 18:41:08 +03:00
Mykyta Synelnikov e1f550afb5 - changed "e-mail" to "email";
- changed texts for admin notices;
- added a few links to docs;
2024-02-16 15:12:21 +02:00
Mykyta Synelnikov f026f44323 - reviewed #1428; 2024-01-18 11:30:49 +02:00
Mykyta Synelnikov 12ba973589 - removed deprecated functions;
- updated readme.txt;
- wpcs changes;
2023-12-01 17:41:13 +02:00
Mykyta Synelnikov 0149605a36 - added ability to use custom metakey as profile slug;
- important: use for this case required usermeta which cannot be empty
2023-09-11 15:41:29 +03:00
Mykyta Synelnikov 77d3ad9b56 - added hash type for the user permalink like: http://localhost:8000/user/~b866ebabacc30f06c1/;
- wpcs + documented new hooks;
2023-09-09 02:21:15 +03:00
Mykyta Synelnikov fa2108172f - fixed issue with lack of the nonces in the um_adm_action handler; 2023-07-24 12:57:18 +03:00
Mykyta Synelnikov 936190d93e - updated using get_option( 'permalink_structure' ) to UM()->is_permalinks which is the same;
- code review for WPML profile links;
- fixed User Profile tabs and subtabs link with WPML arguments in link;
- added deprecated function to outdated `um_rel_canonical_()`. @todo remove since 2.7.0;
- fixed WPCS in class-permalinks.php;
- deprecated `um_localize_permalink_filter`. Use `post_link` instead;
- added new hooks: `um_profile_permalink`,`um_external_profile_url` and new docs for them;
- added new hookdocs for `um_get_current_page_url`;
- temporarily added development/2.6.3 branch to build-docs.yml
2023-06-09 12:28:15 +03:00
yuriinalivaiko c6e5dee6c6 - fixed user profile URL for WPML
- added hook um_permalinks_profile_url
2023-06-06 15:13:46 +03:00
Nikita Sinelnikov 07e664be80 - intermediate results with sanitizing form handlers; 2021-06-29 02:51:54 +03:00
nikitasinelnikov 60187cdc67 - fixed XSS issue with current profile URL 2021-05-07 13:42:20 +03:00
nikitasinelnikov fc2ab58dfe - added UM setting; 2021-04-09 15:25:01 +03:00
nikitasinelnikov 3f920d7ab6 - Fixed: Activate an account via email 2020-09-01 23:34:17 +03:00
nikitasinelnikov 3d8b9f7cf4 - code review; 2020-07-08 19:34:40 +03:00
denisbaranov 3851781161 Fixed: SEO link canonical for the profile page 2020-06-19 17:56:49 +03:00
nikitasinelnikov 72a1e9a7c3 - small code formatting; 2020-03-02 16:47:56 +02:00
Champ Camba 80cfa00d45 Fix missing bracket 2019-12-22 22:47:20 +08:00
Champ Camba 2ef44d91a1 Remove notices 2019-12-22 22:28:41 +08:00
nikitasinelnikov 99474abfd5 - pre 2.0.44 commit; 2019-04-14 21:26:04 +03:00
denisbaranov dc213aab31 Use 'localhost' if $_SERVER['HTTP_HOST'] is empty 2019-04-10 18:19:56 +03:00
nikitozzzzzzz 8cc4be56d6 - fixed profile page permalinks; 2018-10-15 21:36:34 +03:00
nikitozzzzzzz 97ee3cc95e - fixed get current URL function; 2018-05-31 17:21:45 +03:00
nikitozzzzzzz 4ab758e756 - changed version; 2018-05-30 23:57:57 +03:00
yura_nalivaiko e49197e588 - changes with avatar; 2018-05-01 10:21:19 +03:00
nikitozzzzzzz 3eca951d07 - fixed class exists operators; 2018-03-26 01:27:46 +03:00
nikitozzzzzzz 70e33dcacf - added filters for integration with redirect URLs (login, logout, register, account delete, custom homepage);
- fixed SSL permalinks;
2018-03-16 14:20:37 +02:00
nikitozzzzzzz 12891ff743 - hook docs; 2018-03-05 16:35:51 +02:00
nikitozzzzzzz 3d19aa00b8 - made hooks documentation;
- some optimizations and make single functions for some hooks;
2018-03-02 09:55:49 +02:00
nikitozzzzzzz cbf06f5835 - fixed bbPress restrict content message on forums;
- fixed issues with permalinks (issue #375);
- fixed replacing placeholders in [show_content_for_role] shortcode;
2018-02-18 13:27:46 +02:00
Denis Baranov 092be40448 - formatted code 2018-02-13 11:28:54 +02:00
Denis Baranov 8fa0561e20 - fixed user profile url slug name 2018-02-13 11:23:17 +02:00
nikitozzzzzzz 7a93ed0138 - code reviewed; 2018-02-12 16:27:34 +02:00
Denis Baranov 7bdc82ef4a -fixed formated code 2018-02-12 15:37:10 +02:00
Denis Baranov 4d9ba51afe - fixed unique address of the user's link 2018-02-12 13:31:54 +02:00
nikitozzzzzzz e36c3ca841 - settings optimization; 2017-12-11 09:53:38 +02:00
Denis Baranov 545804f4b3 - fixed generated profile permalink base. 2017-11-30 16:27:30 +02:00
Denis Baranov 17906e5485 - fixed generated profile permalink base. 2017-11-27 12:44:21 +02:00
nikitozzzzzzz 824da3f036 - fixed allowed memory size on multisites; 2017-11-14 17:50:37 +02:00
nikitozzzzzzz de3355e059 - fixed activation at multisite (issue #319);
- small notices fixes;
2017-09-14 17:39:26 +03:00
nikitozzzzzzz 9e53314c3a !!! IMPORTANT 2.0 version before upgrade please run full backup of your site !!!
- new code structure, optimized for next development;
  - created spl_autoloader for remove includes;
  - UM classes with namespaces;
  - deprecated global $ultimatemember; variable (use UM() instead);
- new UM/WP roles logic;
- new settings class and logic (deprecated Redux framework, deprecated some old options, added some new options);
- new dependencies class for extensions;
- WP native styles for backend fields;
- new upgrades and license activations for extensions;
- new logic form backend forms and fields;
- created uninstall.php file for delete permanently all UM settings;
- optimized registration/upgrade profile process;

Deprecated Hooks:

um_new_user_registration_plain
um_user_registration_extra_hook
um_add_user_frontend
um_post_registration_global_hook
um_admin_extend_directory_options_general (was action...will be filter)
2017-07-26 14:57:52 +03:00