How to add custom redirect for user after login

How can I redirect a user to settings if a field in the registration form has not been submitted with this code?

	function( $form ) {
			$form['redirect'] = 'custom-link';

		return $form;


We recommend using this hook: template_redirect – Hook |, and then check is_user_logged_in and wp_redirect, for example. And you can additionally check whether the user has the necessary parts.

​I hope this is helpful to you.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.