diff --git a/modules/ppcp-button/src/Assets/class-smartbutton.php b/modules/ppcp-button/src/Assets/class-smartbutton.php index 530d37306..a55837aa1 100644 --- a/modules/ppcp-button/src/Assets/class-smartbutton.php +++ b/modules/ppcp-button/src/Assets/class-smartbutton.php @@ -191,7 +191,7 @@ class SmartButton implements SmartButtonInterface { ); add_action( - $this->pay_order_dcc_button_renderer_hook(), + $this->pay_order_renderer_hook(), array( $this, 'dcc_renderer', @@ -292,7 +292,7 @@ class SmartButton implements SmartButtonInterface { 11 ); add_action( - $this->pay_order_dcc_button_renderer_hook(), + $this->pay_order_renderer_hook(), array( $this, '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->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; } @@ -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 */ - 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'); }