mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
rename method
This commit is contained in:
parent
049638d2b9
commit
91fff09133
1 changed files with 5 additions and 5 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue