Warning: Class "Automattic\WooCommerce\StoreApi\Routes\V1\CartItems" not found in /htdocs/wp-content/plugins/woocommerce/src/StoreApi/deprecated.php on line 73
just set the specs transient with expired time to 3 hours. WCPayPromotionDataSourcePoller::get_instance()->set_specs_transient( array( $locale => $specs ), 3 * HOUR_IN_SECONDS ); self::log_errors( $results['errors'] ); } return $results['suggestions']; } /** * Get merchant WooPay eligibility. */ public static function is_woopay_eligible() { $wcpay_promotion = self::get_wc_pay_promotion_spec(); return $wcpay_promotion && 'woocommerce_payments:woopay' === $wcpay_promotion->id; } /** * Delete the specs transient. */ public static function delete_specs_transient() { WCPayPromotionDataSourcePoller::get_instance()->delete_specs_transient(); } /** * Get specs or fetch remotely if they don't exist. */ public static function get_specs() { if ( get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) === 'no' ) { return array(); } return WCPayPromotionDataSourcePoller::get_instance()->get_specs_from_data_sources(); } /** * Loads the payment method promotions scripts and styles. */ public static function load_payment_method_promotions() { WCAdminAssets::register_style( 'payment-method-promotions', 'style', array( 'wp-components' ) ); WCAdminAssets::register_script( 'wp-admin-scripts', 'payment-method-promotions', true ); } }
Warning: Class "Automattic\WooCommerce\Internal\Admin\WCPayPromotion\Init" not found in /htdocs/wp-content/plugins/woocommerce/src/Admin/Features/Features.php on line 362
Archives des LEGRAND - Page 2 sur 14 - Magasin de vente du Matériel électrique, Luminaire, Carrelage et Sanitaire au Cameroun

Main Menu