Jake Vanderwerf
2026-02-10 649c6af379f1247cbbf924a6ed39244e9aba46fb
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
67
68
<?php
// /content/soap.php
function atat_soap():array
{
    return [
        'singular'       => 'Soap',
        'plural'       => 'Soaps',
        'dash_title'    => 'Soap',
        'dash_description' => 'Manage your soap',
        'breadcrumb'    => 'Soap',
        'icon'         => 'sparkle',
        'integrations'  => [
            'helcim'    => [
                'initial'   => true,
                'update'    => true,
            ],
        ],
        'rewrite'      => [
            'slug'       => 'soap',
            'with_front' => false,
        ],
        'fields'       => [
            'post_title'     => [
                'type'  => 'text',
                'label' => 'Name',
            ],
            'post_status'         => [
                'type'      => 'radio',
                'label'     => 'Status',
                'hidden'    => true,
                'options'   => [
                    'publish'   => 'Show',
                    'draft'     => 'Hide',
                    'trash'     => 'Scrap',
                    'delete'    => 'Permanently Delete'
                ]
            ],
            'post_slug' => [
                'type'  => 'text',
                'label' => 'Slug',
                'hidden'    => true,
            ],
            'post_content'        => [
                'type'  => 'textarea',
                'label' => 'Description',
                'quill' => true,
            ],
            'ingredients' => [
                'type'  => 'textarea',
                'label' => 'Ingredients',
                'quill' => true,
            ],
            'extra_info' => [
                'type'  => 'textarea',
                'label' => 'Extra Info',
                'quill' => true,
            ],
            'flags'  => [
                'type'  => 'taxonomy',
                'taxonomy'  => 'flags',
                'term'  => 'flags',
                'label' => 'Flags',
            ]
        ],
        'single_image' => true,
        'upload_title' => 'Upload Soaps',
    ];
}