rename method

This commit is contained in:
Kirill Braslavsky 2021-07-26 18:32:16 +03:00
parent 049638d2b9
commit 91fff09133
No known key found for this signature in database
GPG key ID: 61737D0C41BF3E75

View file

@ -191,7 +191,7 @@ class SmartButton implements SmartButtonInterface {
); );
add_action( add_action(
$this->pay_order_dcc_button_renderer_hook(), $this->pay_order_renderer_hook(),
array( array(
$this, $this,
'dcc_renderer', 'dcc_renderer',
@ -292,7 +292,7 @@ class SmartButton implements SmartButtonInterface {
11 11
); );
add_action( add_action(
$this->pay_order_dcc_button_renderer_hook(), $this->pay_order_renderer_hook(),
array( array(
$this, $this,
'message_renderer', 'message_renderer',
@ -361,7 +361,7 @@ class SmartButton implements SmartButtonInterface {
} }
add_action( $this->checkout_button_renderer_hook(), array( $this, 'button_renderer' ), 10 ); add_action( $this->checkout_button_renderer_hook(), array( $this, 'button_renderer' ), 10 );
add_action( $this->pay_order_dcc_button_renderer_hook(), array( $this, 'button_renderer' ), 10 ); add_action( $this->pay_order_renderer_hook(), array( $this, 'button_renderer' ), 10 );
return true; return true;
} }
@ -985,11 +985,11 @@ class SmartButton implements SmartButtonInterface {
} }
/** /**
* Return action name PayPal DCC button will be rendered at on pay-order page. * Return action name PayPal button and Pay Later message will be rendered at on pay-order page.
* *
* @return string * @return string
*/ */
private function pay_order_dcc_button_renderer_hook(): string private function pay_order_renderer_hook(): string
{ {
return (string) apply_filters('woocommerce_paypal_payments-pay-order_dcc_renderer_hook', 'woocommerce_pay_order_after_submit'); return (string) apply_filters('woocommerce_paypal_payments-pay-order_dcc_renderer_hook', 'woocommerce_pay_order_after_submit');
} }