woocommerce_get_edit_order_url
Filter the URL to edit the order in the backend.
Usage
add_filter( 'woocommerce_get_edit_order_url', 'wp_kama_woocommerce_get_edit_order_url_filter', 10, 2 ); /** * Function for `woocommerce_get_edit_order_url` filter-hook. * * @param $edit_url * @param $that * * @return */ function wp_kama_woocommerce_get_edit_order_url_filter( $edit_url, $that ){ // filter... return $edit_url; }
- $edit_url
- -
- $that
- -
Changelog
Since 3.3.0 | Introduced. |
Where the hook is called
woocommerce_get_edit_order_url
woocommerce/includes/class-wc-order.php 1922
return apply_filters( 'woocommerce_get_edit_order_url', $edit_url, $this );