HEX
Server: Apache
System: Linux host35.server.ae 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
User: nokatech (2100)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nokatech/public_html/wp-content/plugins/consultox-plugin/inc/taxonomies.php
<?php

namespace CONSULTOXPLUGIN\Inc;


use CONSULTOXPLUGIN\Inc\Abstracts\Taxonomy;


class Taxonomies extends Taxonomy {


	public static function init() {

		$labels = array(
			'name'              => _x( 'Project Category', 'consultox' ),
			'singular_name'     => _x( 'Project Category', 'consultox' ),
			'search_items'      => __( 'Search Category', 'consultox' ),
			'all_items'         => __( 'All Categories', 'consultox' ),
			'parent_item'       => __( 'Parent Category', 'consultox' ),
			'parent_item_colon' => __( 'Parent Category:', 'consultox' ),
			'edit_item'         => __( 'Edit Category', 'consultox' ),
			'update_item'       => __( 'Update Category', 'consultox' ),
			'add_new_item'      => __( 'Add New Category', 'consultox' ),
			'new_item_name'     => __( 'New Category Name', 'consultox' ),
			'menu_name'         => __( 'Project Category', 'consultox' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'project_cat' ),
		);

		register_taxonomy( 'project_cat', 'consultox_project', $args );
		
		//Services Taxonomy Start
		$labels = array(
			'name'              => _x( 'Service Category', 'consultox' ),
			'singular_name'     => _x( 'Service Category', 'consultox' ),
			'search_items'      => __( 'Search Category', 'consultox' ),
			'all_items'         => __( 'All Categories', 'consultox' ),
			'parent_item'       => __( 'Parent Category', 'consultox' ),
			'parent_item_colon' => __( 'Parent Category:', 'consultox' ),
			'edit_item'         => __( 'Edit Category', 'consultox' ),
			'update_item'       => __( 'Update Category', 'consultox' ),
			'add_new_item'      => __( 'Add New Category', 'consultox' ),
			'new_item_name'     => __( 'New Category Name', 'consultox' ),
			'menu_name'         => __( 'Service Category', 'consultox' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'service_cat' ),
		);


		register_taxonomy( 'service_cat', 'consultox_service', $args );
		
		//Testimonials Taxonomy Start
		$labels = array(
			'name'              => _x( 'Testimonials Category', 'consultox' ),
			'singular_name'     => _x( 'Testimonials Category', 'consultox' ),
			'search_items'      => __( 'Search Category', 'consultox' ),
			'all_items'         => __( 'All Categories', 'consultox' ),
			'parent_item'       => __( 'Parent Category', 'consultox' ),
			'parent_item_colon' => __( 'Parent Category:', 'consultox' ),
			'edit_item'         => __( 'Edit Category', 'consultox' ),
			'update_item'       => __( 'Update Category', 'consultox' ),
			'add_new_item'      => __( 'Add New Category', 'consultox' ),
			'new_item_name'     => __( 'New Category Name', 'consultox' ),
			'menu_name'         => __( 'Testimonials Category', 'consultox' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'testimonials_cat' ),
		);


		register_taxonomy( 'testimonials_cat', 'consultox_testimonials', $args );
		
		
		//Team Taxonomy Start
		$labels = array(
			'name'              => _x( 'Team Category', 'consultox' ),
			'singular_name'     => _x( 'Team Category', 'consultox' ),
			'search_items'      => __( 'Search Category', 'consultox' ),
			'all_items'         => __( 'All Categories', 'consultox' ),
			'parent_item'       => __( 'Parent Category', 'consultox' ),
			'parent_item_colon' => __( 'Parent Category:', 'consultox' ),
			'edit_item'         => __( 'Edit Category', 'consultox' ),
			'update_item'       => __( 'Update Category', 'consultox' ),
			'add_new_item'      => __( 'Add New Category', 'consultox' ),
			'new_item_name'     => __( 'New Category Name', 'consultox' ),
			'menu_name'         => __( 'Team Category', 'consultox' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'team_cat' ),
		);


		register_taxonomy( 'team_cat', 'consultox_team', $args );
		
		//Faqs Taxonomy Start
		$labels = array(
			'name'              => _x( 'Faqs Category', 'consultox' ),
			'singular_name'     => _x( 'Faq Category', 'consultox' ),
			'search_items'      => __( 'Search Category', 'consultox' ),
			'all_items'         => __( 'All Categories', 'consultox' ),
			'parent_item'       => __( 'Parent Category', 'consultox' ),
			'parent_item_colon' => __( 'Parent Category:', 'consultox' ),
			'edit_item'         => __( 'Edit Category', 'consultox' ),
			'update_item'       => __( 'Update Category', 'consultox' ),
			'add_new_item'      => __( 'Add New Category', 'consultox' ),
			'new_item_name'     => __( 'New Category Name', 'consultox' ),
			'menu_name'         => __( 'Faq Category', 'consultox' ),
		);
		$args   = array(
			'hierarchical'       => true,
			'labels'             => $labels,
			'show_ui'            => true,
			'show_admin_column'  => true,
			'query_var'          => true,
			'public'             => true,
			'publicly_queryable' => true,
			'rewrite'            => array( 'slug' => 'faqs_cat' ),
		);


		register_taxonomy( 'faqs_cat', 'consultox_faqs', $args );
	}
	
}