get_store_url(), $partner_domain ) !== false ) { return true; } } return array_key_exists( $product->get_slug(), Module_Factory::$slugs ); } /** * Wrapper for wp_remote_get on VIP environments. * * @param string $url Url to check. * @param array $args Option params. * * @return array|\WP_Error */ public function safe_get( $url, $args = array() ) { return function_exists( 'vip_safe_wp_remote_get' ) ? vip_safe_wp_remote_get( $url ) : wp_remote_get( //phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get, Already used. $url, $args ); } }