initNotice(); } /* --- Hooks --- */ private function initNotice() { add_action('admin_notices', [$this, 'showAdminNotice']); add_action('wp_ajax_acf_better_search_notice', [$this, 'saveNoticeClosing']); } /* --- Notice box --- */ public function showAdminNotice() { if ((get_transient('acf_better_search_notice') !== false) || (get_current_screen()->id != 'dashboard')) return false; ?>

'); ?>