woocommerce_edit_address_slugs
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
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' ) ), ) );