芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/popup-maker/includes/integrations/class-pum-woocommerce-integration.php
__( 'WooCommerce', 'woocommerce' ), 'name' => __( 'All WooCommerce', 'popup-maker' ), 'callback' => 'is_woocommerce', ]; $conditions['is_shop'] = [ 'group' => __( 'WooCommerce', 'woocommerce' ), 'name' => __( 'Shop Page', 'popup-maker' ), 'callback' => 'is_shop', ]; $conditions['is_cart'] = [ 'group' => __( 'WooCommerce', 'woocommerce' ), 'name' => __( 'Cart Page', 'popup-maker' ), 'callback' => 'is_cart', ]; $conditions['is_checkout'] = [ 'group' => __( 'WooCommerce', 'woocommerce' ), 'name' => __( 'Checkout Page', 'popup-maker' ), 'callback' => 'is_checkout', ]; $conditions['is_account_page'] = [ 'group' => __( 'WooCommerce', 'woocommerce' ), 'name' => __( 'Account Page', 'popup-maker' ), 'callback' => 'is_account_page', ]; $conditions['is_wc_endpoint_url'] = [ 'group' => __( 'WooCommerce', 'woocommerce' ), 'name' => __( 'Is Endpoint', 'popup-maker' ), 'fields' => [ 'selected' => [ 'placeholder' => __( 'Selected Endpoints', 'popup-maker' ), 'type' => 'select', 'select2' => true, 'multiple' => true, 'as_array' => true, 'options' => [ 'order-pay' => 'order-pay', 'order-received' => 'order-received', // My account actions. 'orders' => 'orders', 'view-order' => 'view-order', 'downloads' => 'downloads', 'edit-account' => 'edit-account', 'edit-address' => 'edit-address', 'payment-methods' => 'payment-methods', 'lost-password' => 'lost-password', 'customer-logout' => 'customer-logout', 'add-payment-method' => 'add-payment-method', 'delete-payment-method' => 'delete-payment-method', 'set-default-payment-method' => 'set-default-payment-method', 'subscriptions' => 'subscriptions', ], ], ], 'callback' => [ __CLASS__, 'is_wc_endpoint_url' ], ]; return $conditions; } public static function condition_sort_order( $order = [] ) { $order[ __( 'WooCommerce', 'woocommerce' ) ] = 5.256; return $order; } }