<?php

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

  return $metaboxes;
});