get_config(self::FEATURE_FLAG); if (is_admin()) { // Hook that initialize the AAM UI part of the service if ($enabled) { add_action('aam_init_ui_action', function () { AAM_Backend_Feature_Main_Welcome::register(); }, 1); } // Hook that returns the detailed information about the nature of the // service. This is used to display information about service on the // Settings->Services tab add_filter('aam_service_list_filter', function ($services) { $services[] = array( 'title' => __('Welcome', AAM_KEY), 'description' => __('Introduction panel to the AAM functionality. This is just a simple tab that contains some introductory material to the AAM plugin and its capabilities.', AAM_KEY), 'setting' => self::FEATURE_FLAG ); return $services; }, 1); } if ($enabled) { AAM_Restful_SupportService::bootstrap(); } } } if (defined('AAM_KEY')) { AAM_Service_Welcome::bootstrap(); }