<?php
add_filter("rwmb_meta_boxes", function ($metaboxes) {
    $menu_fields = [
        [
            "desc" => __("Transparentné menu", "inoby-church"),
            "id" => "page-transparent-header",
            "type" => "checkbox",
            "std" => 0,
        ],
    ];
    $metaboxes[] = [
        "id" => "page-transparent-header",
        "title" => __("Nastavenie stránky", "inoby-church"),
        "post_types" => ["page"],
        "context" => "side",
        "priority" => "default",
        "autosave" => "false",
        "fields" => [
            ...$menu_fields
        ],
    ];

    return $metaboxes;
});