public function add_action(WPML_Notice_Action $action)
 {
     $this->actions[] = $action;
     if ($action->can_dismiss()) {
         $this->dismissible = true;
     }
     if ($action->can_hide()) {
         $this->hideable = true;
     }
 }
 /**
  * @param WPML_Notice_Action $action
  *
  * @return string
  */
 private function get_action_html($action)
 {
     $action_html = '';
     if ($action->can_hide()) {
         $action_html .= $this->get_hide_html($action->get_text());
         $this->hide_html_added = true;
     } elseif ($action->can_dismiss()) {
         $action_html .= $this->get_dismiss_html($action->get_text());
         $this->dismiss_html_added = true;
     } else {
         if ($action->get_url()) {
             $action_html .= $this->get_action_anchor($action);
         } else {
             $action_html .= $action->get_text();
         }
     }
     return $action_html;
 }