WordPress Developer Ukraine, Kyiv
WordPress User Registration Hooks: Validate Custom Fields, Save Meta, and Send Welcome Email

WordPress User Registration Hooks: Validate Custom Fields, Save Meta, an ...

User registration hooks: validate extra fields, save them, send a welcome email The registration form on wp-login.php?action=register asks only for a username and an email. Three hooks let you extend it: register_form prints extra fields, the registration_errors filter validates them and can stop the registration, and user_register runs after the account was created. With profile_update…
How to Use wp_redirect and wp_safe_redirect in WordPress

How to Use wp_redirect and wp_safe_redirect in WordPress

wp_redirect() and wp_safe_redirect() in WordPress Redirects are an everyday task: after a form is sent, after login, when a page has moved, when a guest opens a page for members. In WordPress you do not call header( 'Location: ...' ) yourself; there are two functions for it, and the difference between them matters for security.