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.9.5

do_action('woocommerce_customer_save_address') is found 2 times:

  • /includes/admin/class-wc-admin-profile.php line 245
    				 * @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 222

    * @param string $address_type Type of address; ‘billing’ or ‘shipping’.
    * @param array $address The address fields. Since 9.8.0.
    * @param WC_Customer $customer The customer object being saved. Since 9.8.0.
    */
    do_action( ‘woocommerce_customer_save_address’, $user_id, $address_type, $address, $customer );

    if ( 0 < wc_notice_count( 'error' ) ) { return; } wc_add_notice( __( 'Address changed successfully.', 'woocommerce' ) ); [/php]

See this hook used in plugins: