403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.137.185.202
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/totalcontest-lite/src/Submission/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/totalcontest-lite/src/Submission/Category.php
<?php
namespace TotalContest\Submission;

use TotalContestVendors\TotalCore\Taxonomies\Taxonomy;

/**
 * Class Category
 * @package TotalContest\Submission
 */
class Category extends Taxonomy {
	/**
	 * Get taxonomy name.
	 *
	 * @return mixed
	 */
	public function getName() {
		return 'submission_category';
	}

	/**
	 * Get arguments.
	 *
	 * @return mixed
	 */
	public function getArguments() {
		return apply_filters('totalcontest/filters/contest/category/args', [
			'labels'             => [
				'name'              => esc_html__( 'Categories', 'totalcontest' ),
				'singular_name'     => esc_html__( 'Category', 'totalcontest' ),
				'search_items'      => esc_html__( 'Search Categories', 'totalcontest' ),
				'all_items'         => esc_html__( 'All Categories', 'totalcontest' ),
				'parent_item'       => esc_html__( 'Parent Category', 'totalcontest' ),
				'parent_item_colon' => esc_html__( 'Parent Category:', 'totalcontest' ),
				'edit_item'         => esc_html__( 'Edit Category', 'totalcontest' ),
				'update_item'       => esc_html__( 'Update Category', 'totalcontest' ),
				'add_new_item'      => esc_html__( 'Add New Category', 'totalcontest' ),
				'new_item_name'     => esc_html__( 'New Category Name', 'totalcontest' ),
				'menu_name'         => esc_html__( 'Categories', 'totalcontest' ),
			],
			'public'             => false,
			'hierarchical'       => true,
			
			
		     'show_ui'            => false,
		     'show_in_menu'       => false,
			
			'query_var'          => false,
			'rewrite'            => [ 'slug' => 'category' ],
		]);
	}

	/**
	 * Get post types.
	 *
	 * @return mixed
	 */
	public function getPostTypes() {
		return [ TC_SUBMISSION_CPT_NAME ];
	}

	/**
	 * Register taxonomy.
	 *
	 * @return \WP_Error|\WP_Taxonomy WP_Taxonomy on success, WP_Error otherwise.
	 * @since 1.0.0
	 */
	public function register() {
		parent::register();
		define( 'TC_SUBMISSION_CATEGORY_TAX_NAME', $this->getName() );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit