HEX
Server: LiteSpeed
System: Linux onyx.7ho.st 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: atiscoir (1242)
PHP: 8.1.34
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/atiscoir/public_html/wp-content/themes/myco/inc/taxonomy.php
<?php

// Register Custom Janer Taxonomy
function tmt_cat()  {
	$post_type_slug = TMT_Get_Setting('post-type', 'slug');
	$cat_slug = TMT_Get_Setting('taxonomy', 'cat-slug');
	$args = array(
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
        'show_in_rest'               => true,
	);
	register_taxonomy( $cat_slug, $post_type_slug, $args );
}
add_action( 'init', 'tmt_cat', 0 );

// Register Custom Taxonomy
function tmt_tags() {
	$post_type_slug = TMT_Get_Setting('post-type', 'slug');
	$tag_slug = TMT_Get_Setting('taxonomy', 'tag-slug');
	$args = array(
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
        'show_in_rest'               => true,
	);
	register_taxonomy( $tag_slug, $post_type_slug, $args );
}
add_action( 'init', 'tmt_tags', 0 );