woocommerce_get_cancel_order_url_raw хук-фильтрWC 1.0

Generates a raw (unescaped) cancel-order URL for use by payment gateways.

Использование

add_filter( 'woocommerce_get_cancel_order_url_raw', 'wp_kama_woocommerce_get_cancel_order_url_raw_filter' );

/**
 * Function for `woocommerce_get_cancel_order_url_raw` filter-hook.
 * 
 * @param string $redirect Redirect URL.
 *
 * @return string
 */
function wp_kama_woocommerce_get_cancel_order_url_raw_filter( $redirect ){

	// filter...
	return $redirect;
}
$redirect(строка)
Redirect URL.

Где вызывается хук

WC_Order::get_cancel_order_url_raw()
woocommerce_get_cancel_order_url_raw
woocommerce/includes/class-wc-order.php 1803-1815
return apply_filters(
	'woocommerce_get_cancel_order_url_raw',
	add_query_arg(
		array(
			'cancel_order' => 'true',
			'order'        => $this->get_order_key(),
			'order_id'     => $this->get_id(),
			'redirect'     => $redirect,
			'_wpnonce'     => wp_create_nonce( 'woocommerce-cancel_order' ),
		),
		$this->get_cancel_endpoint()
	)
);

Где используется хук в WooCommerce

Использование не найдено.