woocommerce_paypal_get_order_item_names
Usage
add_filter( 'woocommerce_paypal_get_order_item_names', 'wp_kama_woocommerce_paypal_get_order_item_names_filter', 10, 2 ); /** * Function for `woocommerce_paypal_get_order_item_names` filter-hook. * * @param $implode * @param $order * * @return */ function wp_kama_woocommerce_paypal_get_order_item_names_filter( $implode, $order ){ // filter... return $implode; }
- $implode
- -
- $order
- -
Where the hook is called
woocommerce_paypal_get_order_item_names
woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php 383
return apply_filters( 'woocommerce_paypal_get_order_item_names', implode( ', ', $item_names ), $order );