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

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

add_filter( 'woocommerce_paypal_args', 'wp_kama_woocommerce_paypal_args_filter', 10, 2 );

/**
 * Function for `woocommerce_paypal_args` filter-hook.
 * 
 * @param  $array_merge 
 * @param  $order       
 *
 * @return 
 */
function wp_kama_woocommerce_paypal_args_filter( $array_merge, $order ){

	// filter...
	return $array_merge;
}
$array_merge
-
$order
-

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

WC_Gateway_Paypal_Request::fix_request_length()
woocommerce_paypal_args
WC_Gateway_Paypal_Request::get_paypal_args()
woocommerce_paypal_args
woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php 175-182
return apply_filters(
	'woocommerce_paypal_args',
	array_merge(
		$this->get_transaction_args( $order ),
		$this->get_line_item_args( $order, true )
	),
	$order
);
woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php 201-208
$paypal_args = apply_filters(
	'woocommerce_paypal_args',
	array_merge(
		$this->get_transaction_args( $order ),
		$this->get_line_item_args( $order, $force_one_line_item )
	),
	$order
);

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

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