PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Services / Integrations / MiddlewareUrl.php

MiddlewareUrl.php in The Innovative Form Builder – IvyForms 1.5.1, at backend/src/Services/Integrations/MiddlewareUrl.php

24 lines 591 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Services\Integrations;
4
5 /**
6 * Resolves the ivyforms-middleware base URL (constant + filter).
7 */
8 class MiddlewareUrl
9 {
10 public static function getBaseUrl(): string
11 {
12 $url = defined('IVYFORMS_MIDDLEWARE_URL') ? IVYFORMS_MIDDLEWARE_URL : '';
13
14 /**
15 * Filter the IvyForms integration middleware base URL.
16 *
17 * @since 1.0.0
18 *
19 * @param string $url Middleware base URL without trailing slash.
20 */
21 return rtrim((string) apply_filters('ivyforms/payment/middleware_url', $url), '/');
22 }
23 }
24