Jake Vanderwerf
2025-11-10 627056f72e761c1386e4ab4d72207008d9330a5e
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
<?php
// /taxonomies/setup.php
/**
 * JVB_TAXONOMY : defines the custom taxonomies
 *  structure: slug => [$options]
 *    Note: slug is prepended with BASE
 *    $options includes:
 *         - any $args from register_taxonomy
 *         - (string) singular and plural labels
 *         - show_feed            = (bool) whether to show in feed block
 *         - show_directory    = (bool) whether to output a directory for this taxonomy
 *      - is_content        = (bool) if true, sets it up to be more like a content type, but collects other content types
 *      - is_ownable        = (bool) if true, allows defined users to manage
 *      - karma             = (bool) if true, sets up upvotes/downvotes system
 *         - verify_entry      = (bool) if true, users not already attached to this taxonomy need to be approved before entry.
 *         - approve_new        = (bool) if true, admin/verified users need to approve before 'live'
 *         - track_changes        = (bool) if true, table is created to track historical changes
 *         - for_content        = (array) of post type slugs, as defined in JVB_CONTENT
 *         - fields            = (array) of custom field definitions, from inc/managers/MetaManager.php
 *             -> add use_in_stats (bool) to use the field in user statistics
 */
 
require(AJV_DIR . '/taxonomies/age.php');
require(AJV_DIR . '/taxonomies/body-part.php');
require(AJV_DIR . '/taxonomies/goal.php');
require(AJV_DIR . '/taxonomies/person.php');
require(AJV_DIR . '/taxonomies/section.php');
require(AJV_DIR . '/taxonomies/skin-type.php');
require(AJV_DIR . '/taxonomies/style.php');
require(AJV_DIR . '/taxonomies/theme.php');
require(AJV_DIR . '/taxonomies/timeline.php');
 
add_filter('jvb_taxonomy', 'altr_taxonomy');
function altr_taxonomy():array
{
    return [
        'age'       => altr_age(),
        'body-part' => altr_body_part(),
        'goal'      => altr_goal(),
        'person'    => altr_person(),
        'skin-type' => altr_skin_type(),
        'timeline'  => altr_timeline(),
        'style'     => altr_style(),
        'theme'     => altr_theme(),
        'section'   => altr_section(),
    ];
}