Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress Registration page with block editor

Registration page with block editor

  • Author
    Posts
  • Adanara77

    Good afternoon, I have noticed that if you create a registration page with the block editor, when the user registers it does not take them to their personal page but stays on the registration page but em
    example
    https://cutt.ly/PROTUSER-316

    ihordeveloper

    Thanks, I’ll add a custom option for setting the redirect URL, meanwhile you can try using this code snippet:

    add_filter(
    	'hivepress/v1/forms/user_register',
    	function( $form ) {
    		if ( ! isset( $form['redirect'] ) ) {
    			$form['redirect'] = 'custom url here';
    		}
    
    		return $form;
    	},
    	1000
    );
    Adanara77

    in which file should I put it?

    ihordeveloper

    You can try using this plugin to manage custom PHP snippets https://wordpress.org/plugins/code-snippets/ or create a child theme and put it in functions.php file.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.