Skip to content

Create custom meta by define array for Wordpress.

Notifications You must be signed in to change notification settings

animexxx/dMetas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dMetas

Create custom meta by define array.

Can include to theme for theme developer.

$metas = array(
    [
        'post_type' => 'post',
        'meta_elements' => array(
            [
                'name' => 'txt1',
                'label' => 'Text box 1',
                'meta_type' => 'text',
            ],
            [
                'name' => 'txt2',
                'label' => 'Textarea 1',
                'meta_type' => 'textarea',
            ],
            [
                'name' => 'txt3',
                'label' => 'Editor',
                'meta_type' => 'editor',
            ],
            [
                'name' => 'img1',
                'label' => 'Image upload',
                'meta_type' => 'image',
            ],
            [
                'name' => 'gallery1',
                'label' => 'Gallery',
                'meta_type' => 'gallery',
            ]
        )
    ]
);

About

Create custom meta by define array for Wordpress.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published