woocommerce_edit_address_slugs filter-hookWC 1.0

Get the edit address slug translation.

Usage

add_filter( 'woocommerce_edit_address_slugs', 'wp_kama_woocommerce_edit_address_slugs_filter' );

/**
 * Function for `woocommerce_edit_address_slugs` filter-hook.
 * 
 * @param string $id Address ID.
 *
 * @return string
 */
function wp_kama_woocommerce_edit_address_slugs_filter( $id ){

	// filter...
	return $id;
}
$id(string)
Address ID.

Where the hook is called

wc_edit_address_i18n()
woocommerce_edit_address_slugs
woocommerce/includes/wc-account-functions.php 68-74
$slugs = apply_filters(
	'woocommerce_edit_address_slugs',
	array(
		'billing'  => sanitize_title( _x( 'billing', 'edit-address-slug', 'woocommerce' ) ),
		'shipping' => sanitize_title( _x( 'shipping', 'edit-address-slug', 'woocommerce' ) ),
	)
);

Where the hook is used in WooCommerce

Usage not found.