WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Gateway_Paypal::order_received_text() public WC 3.9.0

Custom PayPal order received text.

{} Это метод класса: WC_Gateway_Paypal{}

Хуков нет.

Возвращает

Строку.

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

$WC_Gateway_Paypal = new WC_Gateway_Paypal();
$WC_Gateway_Paypal->order_received_text( $text, $order );
$text(строка) (обязательный)
Default text.
$order(WC_Order) (обязательный)
Order data.

Список изменений

С версии 3.9.0 Введена.

Код WC_Gateway_Paypal::order_received_text() WC 5.7.1

public function order_received_text( $text, $order ) {
	if ( $order && $this->id === $order->get_payment_method() ) {
		return esc_html__( 'Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you. Log into your PayPal account to view transaction details.', 'woocommerce' );
	}

	return $text;
}