public function displayUsageNotice() { if (!$this->menuEditor->is_tab_open(self::TAB_SLUG)) { return; } //If the user has already made some changes, they probably don't need to see this notice any more. $settings = $this->getSettings(); if (!empty($settings['plugins'])) { return; } //The notice is dismissible. if (get_site_option(self::HIDE_USAGE_NOTICE_FLAG, false)) { return; } echo '<div class="notice notice-info is-dismissible" id="ame-pv-usage-notice"> <p> <strong>Tip:</strong> This screen lets you hide plugins from other users. These settings only affect the "Plugins" page, not the admin menu or the dashboard. </p> </div>'; }