Jake Vanderwerf
2025-11-10 ad0b0246d88f723056970e7b1fb0af3de459a174
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
// /content/sample.php
function altr_sample():array
{
    return [
        'singular'       => 'Term',
        'plural'       => 'Terms',
        'dash_title'    => 'Glossary',
        'dash_description' => 'Manage your terms',
        'breadcrumb'    => 'Glossary',
        'hide_single'  => true,
        'icon'         => 'asterisk',
        'is_gallery'    => true,
        'rewrite'      => [
            'slug'       => 'glossary',
            'with_front' => false,
        ],
        'fields'       => [
            'post_title'     => [
                'type'  => 'text',
                'label' => 'Title',
            ],
            'post_status'         => [
                'type'      => 'radio',
                'label'     => 'Status',
                'hidden'    => true,
                'options'   => [
                    'publish'   => 'Show',
                    'draft'     => 'Hide',
                    'trash'     => 'Scrap',
                    'delete'    => 'Permanently Delete'
                ]
            ],
            'post_slug' => [
                'type'  => 'text',
                'label' => 'Slug'
            ],
            'post_content'        => [
                'type'  => 'textarea',
                'label' => 'Definition',
                'quill' => true,
            ],
            'pronunciation' => [
                'type'  => 'repeater',
                'label' => 'Pronunciation',
                'fields' => [
                    'part'  => [
                        'type'  => 'text',
                        'label' => 'Part',
                    ]
                ]
            ],
            'type'  => [
                'type'  => 'radio',
                'label' => 'Type',
                'options' => [
                    'adjective',
                    'noun',
                    'verb'
                ]
            ]
        ],
        'single_image' => false,
        'upload_title' => 'Upload Before & Afters',
    ];
}