Redirect to homepage after password change

Hello,

Currently, after users change their password from the HivePress modal, they are redirected to the /account/settings/ page. How can we redirect them to the homepage instead?

Thank you,

Could you please check the following code?

add_filter(
 'hivepress/v1/users/reset-password',
 function($form){
  $form['redirect'] = 'https://www.domain.com/';
  return $form;
 },
 1000
);

Hi,

Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work: https://fvrr.co/32e7LvY

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