mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Disable via CSS class
This commit is contained in:
parent
a2f61e9505
commit
50ca4dc079
3 changed files with 16 additions and 18 deletions
|
@ -591,14 +591,12 @@ class SmartButton implements SmartButtonInterface {
|
|||
);
|
||||
}
|
||||
|
||||
if ( in_array( $this->context(), array( 'pay-now', 'checkout' ), true ) ) {
|
||||
wp_enqueue_style(
|
||||
'gateway',
|
||||
untrailingslashit( $this->module_url ) . '/assets/css/gateway.css',
|
||||
array(),
|
||||
$this->version
|
||||
);
|
||||
}
|
||||
wp_enqueue_style(
|
||||
'gateway',
|
||||
untrailingslashit( $this->module_url ) . '/assets/css/gateway.css',
|
||||
array(),
|
||||
$this->version
|
||||
);
|
||||
|
||||
wp_enqueue_script(
|
||||
'ppcp-smart-button',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue