?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d5/server/Admin/Managers/



?? Go up: /home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d5/server/Admin

?? Viewing: PermissionManager.php

<?php

namespace KS_PAC_DCFH\Admin\Managers;

if (!defined('ABSPATH')) {
    exit;
}

class PermissionManager
{
    private static $_instance;

    public static function instance(): self
    {
        if (self::$_instance === null) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }

    public static function can_perform_entry_actions(): bool
    {
        return current_user_can('perform_entry_actions_pwh_dcfh');
    }

    public static function can_export_entries(): bool
    {
        return current_user_can('export_csv_pwh_dcfh');
    }

    public static function can_delete_entries(): bool
    {
        return current_user_can('delete_pwh_dcfhs');
    }

}


??

??