/**
  * Called when the plugin is activated. You should not do much work here. Instead, this is a place to
  * queue deferred actions that will be executed on next page refresh.
  */
 public function on_activate()
 {
     // Reset all warnings, they should all be started new
     CUAR_MessageCenter::reset_warnings();
     // Schedule checking for updating/setting up the plugin
     CUAR_PluginActivationManager::schedule_deferred_action('check-plugin-version', 10);
     // Schedule a check of the template files
     CUAR_PluginActivationManager::schedule_deferred_action('check-template-files', 20);
     // Schedule flushing all rewrite rules
     CUAR_PluginActivationManager::schedule_deferred_action('flush-rewrite-rules', 20);
     // Schedule a check of the permalinks setting in WordPress
     CUAR_PluginActivationManager::schedule_deferred_action('check-permalink-settings', 40);
 }
 public function get_attention_needed_messages()
 {
     return $this->message_center->get_warnings();
 }