$28 GRAYBYTE WORDPRESS FILE MANAGER $40

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/src/Subscriptions/Endpoints/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/src/Subscriptions/Endpoints//Endpoint.php
<?php

namespace Give\Subscriptions\Endpoints;

use Give\API\RestRoute;
use WP_Error;

abstract class Endpoint implements RestRoute
{
    /**
     * @var string
     */
    protected $endpoint;

    /**
     * @param  string  $value
     * @since 2.20.0
     *
     * @return bool
     */
    public function validateInt($value)
    {
        return filter_var($value, FILTER_VALIDATE_INT);
    }

    /**
     * Check user permissions
     * @since 4.3.1 updates permissions
     * @since 2.20.0
     *
     * @return bool|WP_Error
     */
    public function permissionsCheck()
    {
        if (current_user_can('manage_options') || current_user_can('edit_give_payments')) {
            return true;
        }

        return new WP_Error(
            'rest_forbidden',
            __("You don't have permission to view Subscriptions", 'give'),
            ['status' => is_user_logged_in() ? 403 : 401]
        );
    }

    /**
     * Sets up the proper HTTP status code for authorization.
     * @since 2.20.0
     *
     * @return int
     */
    public function authorizationStatusCode()
    {
        if (is_user_logged_in()) {
            return 403;
        }

        return 401;
    }
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
Endpoint.php
1.171 KB
28 Jan 2026 8.00 PM
bravetechrwanda / bravetechrwanda
0644
ListSubscriptionStats.php
3.557 KB
30 Oct 2025 12.17 AM
bravetechrwanda / bravetechrwanda
0644
ListSubscriptions.php
9.77 KB
30 Oct 2025 12.17 AM
bravetechrwanda / bravetechrwanda
0644
SubscriptionActions.php
5.73 KB
28 Jan 2026 8.00 PM
bravetechrwanda / bravetechrwanda
0644
SwitchSubscriptionView.php
0.314 KB
19 Jan 2023 12.19 AM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF