Server IP : 162.213.251.208 / Your IP : 3.137.218.83 Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : jmoroovq ( 1890) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/jmoroovq/expressmedicalbillingservices.com/wp-content/plugins/bdthemes-element-pack/modules/protected-content/ |
Upload File : |
<?php namespace ElementPack\Modules\ProtectedContent; use ElementPack\Base\Element_Pack_Module_Base; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class Module extends Element_Pack_Module_Base { public function get_name() { return 'protected-content'; } public function get_widgets() { $widgets = [ 'Protected_Content', ]; return $widgets; } /** * Fetch user roles as array * @return return all users as array */ public static function pc_user_roles(){ global $wp_roles; $all_roles = $wp_roles->roles; $user_roles = []; if(!empty($all_roles)){ foreach($all_roles as $key => $value){ $user_roles[$key] = $all_roles[$key]['name']; } } return $user_roles; } }