<?php

add_filter("rwmb_meta_boxes", function ($metaboxes) {
  $metaboxes[] = [
    "id" => "category",
    "title" => esc_html__("Dodatočné informácie o kategórii", "inoby"),
    "taxonomies" => "category",
    "fields" => [
      [
        "name" => __("Obrázok kategórie", "inoby"),
        "id" => "category_thumbnail",
        "type" => "image_advanced",
        "max_file_uploads" => 1,
      ],
    ],
  ];

  return $metaboxes;
});
