File manager - Edit - /home/proidvn/me.proid.vn/wp-content/plugins/jetformbuilder/modules/gateways/rest-api/gateway-endpoint.php
Back
<?php namespace JFB_Modules\Gateways\Rest_Api; use JFB_Components\Rest_Api\Dynamic_Rest_Url_Trait; use JFB_Components\Rest_Api\Rest_Api_Endpoint_Base; // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } abstract class Gateway_Endpoint extends Rest_Api_Endpoint_Base { use Dynamic_Rest_Url_Trait; abstract public static function gateway_rest_base(): string; abstract public static function gateway_id(): string; public static function get_rest_base() { return '(?P<gateway>[\w\-]+)/' . static::gateway_rest_base(); } public function get_common_args(): array { return array( 'gateway' => array( 'validate_callback' => function ( $param, $request, $key ) { return static::gateway_id() === $param; }, ), ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.12 |
proxy
|
phpinfo
|
Settings