Jake Vanderwerf
2026-05-11 aa974bf5954d0cca2506003a3cd9ec4eb89ed0bc
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
// /taxonomies/target.php
 
use JVBase\registrar\Registrar;
if (!defined('ABSPATH')) {
    exit;
}
 
add_action('jvbDefineRegistrar', 'altr_number');
add_action('jvbDefineRegistrarFields', 'altr_number_fields');
 
add_action('plugins_loaded', 'altr_number',1);
//Add fields later so we can verify taxonomies/post types exist
add_action('plugins_loaded', 'altr_number_fields', 2);
 
add_filter('altr_NumberSchemaDefault', 'altr_number_schema');
add_filter('altr_NumberMetaDefault', 'altr_number_meta');
add_filter('altr_NumberArchiveDefault', 'altr_number_archive');
 
function altr_number(){
    if (!class_exists('JVBase\registrar\Registrar')) {
        return;
    }
    $number = Registrar::forTerm('number', 'Treatment Number', 'Treatment Number')
        ->setIcon('crosshair')
        ->make([
            'rewrite'   => [
                'slug'          => 'before-and-after/by/treatment',
                'with_front'    => false,
            ],
            'description'   => 'Complete tattoo removal or fading for a cover up tattoo (or unknown)',
            'hierarchical' => false,
            'for'    => [
                'progress',
            ],
        ])
        ->setAll([
            'show_directory',
            'show_feed',
        ]);
 
//$directory = $number->getConfig('directory');
 
}
 
function altr_number_fields():void
{
    if (!class_exists('JVBase\registrar\Registrar')) {
        return;
    }
    $number = Registrar::getInstance('number');
 
    $fields = $number->fields();
    $fields->addCommon('wiki');
}
 
function altr_number_schema():array
{
    return [
        'name'       => 'Laser Tattoo Removal After {{name}} Treatments',
    ];
}
 
function altr_number_meta():array
{
    return[
        'name'        => 'Laser Tattoo Removal After {{name}} Treatments',
        'description' => 'Before and after results for clients seeking {{term_name}}. See how PicoWay laser technology delivers results in Edmonton.',
    ];
}
 
function altr_number_archive(array $defaults):array
{
    return array_merge($defaults, [
        'name'      => 'Laser Tattoo Removal After {{name}} Treatments',
    ]);
}
 
function altr_number_reference_schema(array $defaults):array
{
    return $defaults;
}
 
 
//
//function altr_number():array
//{
//    return [
//        'singular'     => 'Treatment Number',
//        'plural'       => 'Number of Treatments',
//        'icon'         => 'hash',
//        'show_feed'    => true,
//        'show_directory'=> true,
//        'rewrite'      => [
//            'slug'         => 'before-and-after/by/treatment',
//            'with_front'   => false,
//            'hierarchical' => false,
//        ],
//        'hierarchical' => false,
//        'for_content'  => [
//            'progress',
//        ],
//        'fields'       => [
//            'term_name' => [
//                'label'     => 'Name',
//                'type'      => 'text',
//                'subtype'   => 'number',
//                'quickEdit' => true,
//            ],
//            'common'    => [ 'wiki' ]
//        ]
//    ];
//}