woocommerce_save_account_details

woocommerce_save_account_details

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_save_account_details') is found 1 times:

  • /includes/class-wc-form-handler.php line 362
    			 *
    			 * @since 3.6.0
    			 * @param int $user_id User ID being saved.
    			 */
    			do_action( 'woocommerce_save_account_details', $user->ID );
    
    			// Notices are checked here so that if something created a notice during the save hooks above, the redirect will not happen.
    			if ( 0 === wc_notice_count( 'error' ) ) {
    				wc_add_notice( __( 'Account details changed successfully.', 'woocommerce' ) );
    				wp_safe_redirect( wc_get_endpoint_url( 'edit-account', '', wc_get_page_permalink( 'myaccount' ) ) );
    				exit;
    

See this hook used in plugins: