S
S
skdon2015-11-02 15:37:50
WordPress
skdon, 2015-11-02 15:37:50

Wordpress redirect. Why isn't it happening?

On the page with my own template, I call the function:

wp_update_user( array ('ID' => $current_user->ID, 'user_email' => esc_attr( $email )));
The soap in the database changes, but the page spins in the update and eventually knocks out an error on the script execution timeout "Fatal error: Maximum execution time of 120 seconds exceeded in". The same thing happens when you try to edit the password
wp_update_user( array( 'ID' => $current_user->ID, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );

Please tell me how to make a redirect to the same page when changing the e-mail and to the login page if the user has changed the password.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question