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
<?php
// /users/setup.php
/**
 * JVB_USER -> defines user roles. Mainly for Dashboard/Directory sites
 *      Structure: slug => $options
 *    Note: slug is prepended with BASE
 *     $options includes:
 *         - has_dashboard        = user has access to custom dashboard
 *         - can_create        = (array) of post types and taxonomies they can create
 *                             --> Optionally, if the user is split between types (example: tattoo artist vs piercer), you can define types here.
 *                                 ex: [
 *                                     ['tattoo-artist'    => ['tattoo', 'artwork']],
 *                                     ['piercer'        => ['piercing', 'artwork']],
 *                                 ]
 *         - manage_others    = (array) of post types this role can manage other users items
 *         - can_register        = (bool) if true, this user can self register
 *         - profile            = (string) associated post type to treat as archive page, as registered in JVB_CONTENT
 *         - register_fields    = (array) of field names available in registration, as defined in settings OR associated profile JVB_CONTENT
 *         - approve_new        = (bool) if true, user content is hidden until verified by admin/other verified users
 *         - keep_stats        = (bool) if true, creates a statistics table that tracks how much content is created per user per day
 *         - settings            = (array) of fields users can modify
 *         - admin                = (array) of fields admin/moderators can modify, attached to user
 *        - register            = (array) of field names as defined in settings that are on registration, if can_register === true
 *         - description        = (array|string) if an array, each item in array will be it's own paragraph
 *                             -> description of the user role. Used in the registration page
 */
 
require(ATAT_DIR . '/users/client.php');
//require(ATAT_DIR . '/users/enthusiast.php');
 
add_filter('jvb_user', 'atat_user');
function atat_user():array
{
    return [
//        'enthusiast'    => atat_user_enthusiast(),
        'client'        => atat_user_client(),
    ];
}