/**
  * Update category.
  */
 public function executeUpdateCategory()
 {
     $form = new AB_CategoryForm();
     $form->bind($this->getPostParameters());
     $category = $form->save();
     // Register string for translate in WPML.
     do_action('wpml_register_single_string', 'bookly', 'category_' . $category->id, $category->name);
 }
 /**
  * Update category.
  */
 public function executeUpdateCategory()
 {
     $form = new AB_CategoryForm();
     $form->bind($this->getPostParameters());
     $form->save();
 }