mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Update the AXO warning messages
This commit is contained in:
parent
1f3bc01526
commit
2adc7d1289
3 changed files with 30 additions and 10 deletions
|
@ -71,6 +71,7 @@ $background-ident-color: #fbfbfb;
|
|||
.highlight {
|
||||
background: transparent;
|
||||
color: #dba617;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,10 +60,13 @@ class CartCheckoutDetector {
|
|||
* @return bool
|
||||
*/
|
||||
public static function has_elementor_checkout(): bool {
|
||||
$elementor_widgets = self::get_elementor_widgets( wc_get_page_id( 'checkout' ) );
|
||||
// Check if Elementor is installed and activated
|
||||
if ( did_action( 'elementor/loaded' ) ) {
|
||||
$elementor_widgets = self::get_elementor_widgets( wc_get_page_id( 'checkout' ) );
|
||||
|
||||
if ( $elementor_widgets ) {
|
||||
return in_array( 'woocommerce-checkout-page', $elementor_widgets, true );
|
||||
if ( $elementor_widgets ) {
|
||||
return in_array( 'woocommerce-checkout-page', $elementor_widgets, true );
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue