MPSUM_Admin.php
7 years ago
MPSUM_Admin_Advanced.php
7 years ago
MPSUM_Admin_Advanced_Preview.php
7 years ago
MPSUM_Admin_Ajax.php
7 years ago
MPSUM_Admin_Bar.php
7 years ago
MPSUM_Admin_Core.php
7 years ago
MPSUM_Admin_Dashboard.php
7 years ago
MPSUM_Admin_Help.php
7 years ago
MPSUM_Admin_Logs.php
7 years ago
MPSUM_Admin_Plugins.php
7 years ago
MPSUM_Admin_Screen_Options.php
7 years ago
MPSUM_Admin_Themes.php
7 years ago
MPSUM_Advanced_Premium.php
7 years ago
MPSUM_Check_Plugin_Install_Status.php
7 years ago
MPSUM_Check_Theme_Install_Status.php
7 years ago
MPSUM_Commands.php
7 years ago
MPSUM_Disable_Updates.php
7 years ago
MPSUM_Disable_Updates_All.php
7 years ago
MPSUM_Disable_Updates_Plugins.php
7 years ago
MPSUM_Disable_Updates_Themes.php
7 years ago
MPSUM_Disable_Updates_Translations.php
7 years ago
MPSUM_Disable_Updates_WordPress.php
7 years ago
MPSUM_Exclude_Users.php
7 years ago
MPSUM_Force_Updates.php
7 years ago
MPSUM_List_Table.php
7 years ago
MPSUM_Logs.php
7 years ago
MPSUM_Logs_List_Table.php
7 years ago
MPSUM_Plugins_List_Table.php
7 years ago
MPSUM_Reset_Options.php
7 years ago
MPSUM_Themes_List_Table.php
7 years ago
MPSUM_UpdraftCentral.php
7 years ago
MPSUM_UpdraftCentral_EUM_Commands.php
7 years ago
MPSUM_Utils.php
7 years ago
easy-updates-manager-notices.php
7 years ago
updraft-notices.php
7 years ago
MPSUM_Exclude_Users.php
48 lines
| 1 | <?php |
| 2 | if (!defined('ABSPATH')) die('No direct access.'); |
| 3 | |
| 4 | if (class_exists('MPSUM_Exclude_Users')) return; |
| 5 | |
| 6 | /** |
| 7 | * Class MPSUM_Exclude_Users |
| 8 | * |
| 9 | * Handles user exclusion for plugin settings |
| 10 | */ |
| 11 | class MPSUM_Exclude_Users { |
| 12 | |
| 13 | /** |
| 14 | * MPSUM_Exclude_Users constructor. |
| 15 | */ |
| 16 | private function __construct() { |
| 17 | add_action('eum_advanced_headings', array($this, 'heading')); |
| 18 | add_action('eum_advanced_settings', array($this, 'settings')); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Returns a singleton instance |
| 23 | * |
| 24 | * @return MPSUM_Exclude_Users object |
| 25 | */ |
| 26 | public static function get_instance() { |
| 27 | static $instance = null; |
| 28 | if (null === $instance) { |
| 29 | $instance = new self(); |
| 30 | } |
| 31 | return $instance; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Outputs feature heading |
| 36 | */ |
| 37 | public function heading() { |
| 38 | printf('<div data-menu_name="exclude-users" class="active-menu">%s <span class="eum-advanced-menu-text">%s</span></div>', '<i class="material-icons">stop_screen_share</i>', esc_html__('Exclude users', 'stops-core-theme-and-plugin-updates')); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Outputs feature settings |
| 43 | */ |
| 44 | public function settings() { |
| 45 | Easy_Updates_Manager()->include_template('exclude-users.php'); |
| 46 | } |
| 47 | } |
| 48 |