<commit_before><?php
 /*
 * Here you can write your own custom taxonomies. You can
 * copy the example as a model, or use a generator like:
 * Generator: http://generatewp.com/taxonomy/
 *
 * Codex: http://codex.wordpress.org/Function_Reference/register_taxonomy
 */



function custom_category() {
	$labels = array(
		'name'                       => _x( 'Custom Categories', 'Taxonomy General Name', 'osea-theme' ),
		'singular_name'              => _x( 'Custom Category', 'Taxonomy Singular Name', 'osea-theme' ),
		'menu_name'                  => __( 'Custom Category', 'osea-theme' ),
		'all_items'                  => __( 'All Custom Categories', 'osea-theme' ),
		'parent_item'                => __( 'Parent Custom Category', 'osea-theme' ),
		'parent_item_colon'          => __( 'Parent Custom Category:', 'osea-theme' ),
		'new_item_name'              => __( 'New Custom Category Name', 'osea-theme' ),
		'add_new_item'               => __( 'Add New Custom Category', 'osea-theme' ),
		'edit_item'                  => __( 'Edit Item', 'osea-theme' ),
		'update_item'                => __( 'Update Item', 'osea-theme' ),
		'separate_items_with_commas' => __( 'Separate Custom Categories with commas', 'osea-theme' ),
		'search_items'               => __( 'Search Custom Categories', 'osea-theme' ),
		'add_or_remove_items'        => __( 'Add or remove Custom Categories', 'osea-theme' ),
		'choose_from_most_used'      => __( 'Choose from the most used Custom Categories', 'osea-theme' ),
		'not_found'                  => __( 'Not Found', 'osea-theme' ),
	);
	$rewrite = array(
		'slug'                       => 'custom-slug',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,	// < this makes it a 'category'
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'custom_cat', array( 'custom_type' ), $args );
}
add_action( 'init', 'custom_category', 0 );



/*
// add custom tag
register_taxonomy( 'custom_tag', 
	array('custom_type'),
	array('hierarchical' => false,
		'labels' => array(<commit_msg>updated plugin/taxonomies template<commit_after><?php
 /*
 * Here you can write your own custom taxonomies. You can
 * copy the example as a model, or use a generator like:
 * Generator: http://generatewp.com/taxonomy/
 *
 * Codex: http://codex.wordpress.org/Function_Reference/register_taxonomy
 */

function custom_category_example() {
	$labels = array(
		'name'                       => _x( 'Custom Categories', 'Taxonomy General Name', 'osea-theme' ),
		'singular_name'              => _x( 'Custom Category', 'Taxonomy Singular Name', 'osea-theme' ),
		'menu_name'                  => __( 'Custom Category', 'osea-theme' ),
		'all_items'                  => __( 'All Custom Categories', 'osea-theme' ),
		'parent_item'                => __( 'Parent Custom Category', 'osea-theme' ),
		'parent_item_colon'          => __( 'Parent Custom Category:', 'osea-theme' ),
		'new_item_name'              => __( 'New Custom Category Name', 'osea-theme' ),
		'add_new_item'               => __( 'Add New Custom Category', 'osea-theme' ),
		'edit_item'                  => __( 'Edit Custom Category', 'osea-theme' ),
		'update_item'                => __( 'Update Custom Category', 'osea-theme' ),
		'separate_items_with_commas' => __( 'Separate Custom Categories with commas', 'osea-theme' ),
		'search_items'               => __( 'Search Custom Categories', 'osea-theme' ),
		'add_or_remove_items'        => __( 'Add or remove Custom Categories', 'osea-theme' ),
		'choose_from_most_used'      => __( 'Choose from the most used Custom Categories', 'osea-theme' ),
		'not_found'                  => __( 'Not Found', 'osea-theme' ),
	);
	$rewrite = array(
		'slug'                       => 'custom-slug',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,	// < this makes it a 'category'
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'custom_cat', array( 'custom_type' ), $args );
}
add_action( 'init', 'custom_category_example', 0 );


function custom_tag_example() {
	$labels = array(
		'name'                       => _x( 'Custom Tags', 'Taxonomy General Name', 'osea-theme' ),
		'singular_name'              => _x( 'Custom Tag', 'Taxonomy Singular Name', 'osea-theme' ),
		'menu_name'                  => __( 'Custom Tag', 'osea-theme' ),
		'all_items'                  => __( 'All Custom Tags', 'osea-theme' ),
		'parent_item'                => __( 'Parent Custom Tag', 'osea-theme' ),
		'parent_item_colon'          => __( 'Parent Custom Tag:', 'osea-theme' ),
		'new_item_name'              => __( 'New Custom Category Name', 'osea-theme' ),
		'add_new_item'               => __( 'Add New Custom Tag', 'osea-theme' ),
		'edit_item'                  => __( 'Edit Custom Tag', 'osea-theme' ),
		'update_item'                => __( 'Update Custom Tag', 'osea-theme' ),
		'separate_items_with_commas' => __( 'Separate Custom Tags with commas', 'osea-theme' ),
		'search_items'               => __( 'Search Custom Tags', 'osea-theme' ),
		'add_or_remove_items'        => __( 'Add or remove Custom Tags', 'osea-theme' ),
		'choose_from_most_used'      => __( 'Choose from the most used Custom Tags', 'osea-theme' ),
		'not_found'                  => __( 'Not Found', 'osea-theme' ),
	);
	$rewrite = array(
		'slug'                       => 'custom-slug',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,	// < this makes it a 'tag'
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'custom_tag', array( 'custom_type' ), $args );
}
add_action( 'init', 'custom_tag_example', 0 );


/*
// add custom tag
register_taxonomy( 'custom_tag', 
	array('custom_type'),
	array('hierarchical' => false,
		'labels' => array(
{'fraction_non_alphanumeric': 0.15509224538773062, 'fraction_numerical': 0.00044997750112494374, 'mean_word_length': 2.1692015209125475, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6855126', 'n_tokens_mistral': 2206, 'n_tokens_neox': 2110, 'n_words': 470}