woocommerce_get_order_address
Returns the requested address in raw, non-formatted way. Note: Merges raw data with get_prop data so changes are returned too.
Использование
add_filter( 'woocommerce_get_order_address', 'wp_kama_woocommerce_get_order_address_filter', 10, 2 ); /** * Function for `woocommerce_get_order_address` filter-hook. * * @param $type * @param $that * * @return */ function wp_kama_woocommerce_get_order_address_filter( $type, $that ){ // filter... return $type; }
- $type
- -
- $that
- -
Список изменений
С версии 2.4.0 | Введена. |
Где вызывается хук
woocommerce_get_order_address
woocommerce/includes/class-wc-order.php 903
return apply_filters( 'woocommerce_get_order_address', array_merge( $this->data[ $type ], $this->get_prop( $type, 'view' ) ), $type, $this );