woocommerce_customer_save_address

woocommerce_customer_save_address

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_customer_save_address') is found 2 times:

  • /includes/admin/class-wc-admin-profile.php line 243
    				 * @since 8.5.0
    				 * @param int    $user_id User ID being saved.
    				 * @param string $address_type Type of address; 'billing' or 'shipping'.
    				 */
    				do_action( 'woocommerce_customer_save_address', $user_id, $address_type );
    			}
    		}
    
    		/**
    		 * Get user meta for a given key, with fallbacks to core user info for pre-existing fields.
    		 *
    
  • /includes/class-wc-form-handler.php line 219
    		 * @since 3.6.0
    		 * @param int    $user_id User ID being saved.
    		 * @param string $address_type Type of address; 'billing' or 'shipping'.
    		 */
    		do_action( 'woocommerce_customer_save_address', $user_id, $address_type );
    
    		wp_safe_redirect( wc_get_endpoint_url( 'edit-address', '', wc_get_page_permalink( 'myaccount' ) ) );
    		exit;
    	}
    
    	/**
    

See this hook used in plugins: