} } } return true; } /** * Check if the payment gateways is empty or not for the controller. * * @return bool */ public function has_payment_gateways(): bool { $gateways = $this->wc->get_available_payment_gateways(); if ( empty( $gateways ) ) { return false; } return true; } /** * Check if the store is using SSL for the controller. * * @return bool */ public function get_is_store_ssl(): bool { return 'https' === wp_parse_url( $this->get_site_url(), PHP_URL_SCHEME ); } /** * Check if the store has refund return policy page for the controller. * * @return bool */ public function has_refund_return_policy_page(): bool { // Check the slug as it's translated by the "woocommerce" text domain name. // phpcs:ignore WordPress.WP.I18n.TextDomainMismatch if ( $this->the_slug_exists( _x( 'refund_returns', 'Page slug', 'woocommerce' ) ) ) { return true; } return false; } /** * Check if the slug exists or not. * * @param string $post_name * @return bool */ protected function the_slug_exists( string $post_name ): bool { $args = [ 'name' => $post_name, 'post_type' => 'page', 'post_status' => 'publish', 'numberposts' => 1, ]; if ( get_posts( $args ) ) { return true; } return false; } }
Warning: class_implements(): Class Automattic\WooCommerce\GoogleListingsAndAds\MerchantCenter\PolicyComplianceCheck does not exist and could not be loaded in /htdocs/wp-content/plugins/google-listings-and-ads/src/Internal/DependencyManagement/AbstractServiceProvider.php on line 73

Warning: foreach() argument must be of type array|object, bool given in /htdocs/wp-content/plugins/google-listings-and-ads/src/Internal/DependencyManagement/AbstractServiceProvider.php on line 73
Shop - NPS-Machines d'impression maroc