DEMOONLINE GENERATORPOST TYPE GENERATORTAXONOMY GENERATOR
MY ACCOUNT
Meta Box

FEATURES
PRICING
EXTENSIONS
SUPPORT
DOCUMENTATION
RESOURCES
SUPPORT FORUM
BLOG
GET META BOX
Online Generator
Generate custom meta boxes for WordPress in a few click. Ready to copy and paste PHP code for custom meta boxes.

Welcome to Meta Box Online Generator. This tool helps you to generate code for custom meta boxes and custom fields to use with the Meta Box plugin.

If this is the first time you use the tool, please read this guide.
If you want to use the generator inside WordPress admin area, please use the Meta Box Builder extension.
 Fields Settings
Enter field type here
Basic
Button
Checkbox
Checkbox List
Email
Hidden
Number
Password
Radio
Range
Select
Select Advanced
Text
Textarea
URL
Advanced
WordPress
Upload
Layout
Rättens namn
text
Tillgänglig på Hornsgatan
checkbox
Tillgänglig på Götgatan
checkbox
GENERATE CODE
Copy and paste the code into your theme's functions.php file. Wanna use this builder inside the WordPress admin with support for
<?php
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );

function your_prefix_register_meta_boxes( $meta_boxes ) {
    $prefix = '';

    $meta_boxes[] = [
        'title'   => esc_html__( 'Untitled Field Group', 'online-generator' ),
        'id'      => 'untitled',
        'context' => 'normal',
        'fields'  => [
            [
                'type' => 'text',
                'name' => esc_html__( 'Rättens namn', 'online-generator' ),
                'id'   => $prefix . 'rattens_namn',
            ],
            [
                'type' => 'checkbox',
                'name' => esc_html__( 'Tillgänglig på Hornsgatan', 'online-generator' ),
                'id'   => $prefix . 'tillganglig_pa_hornsgatan',
                'desc' => esc_html__( 'Produkten går att köpa på Hornsgatan.', 'online-generator' ),
            ],
            [
                'type' => 'checkbox',
                'name' => esc_html__( 'Tillgänglig på Götgatan', 'online-generator' ),
                'id'   => $prefix . 'tillganglig_pa_gotgatan',
                'desc' => esc_html__( 'Produkten går att köpa på Götatan.', 'online-generator' ),
            ],
        ],
    ];

    return $meta_boxes;
}
Copy

Kontakta oss

info@falafelbaren.se

0729 07 26 37

Hitta hit

Sociala medier