: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
abstract class ET_Core_Post_Taxonomy extends ET_Core_Post_Object {
* The `$args` array used when registering this taxonomy.
* The WP Taxonomy object for this instance.
* The post types to which this taxonomy applies.
public $wp_type = 'taxonomy';
* ET_Core_Post_Taxonomy constructor.
public function __construct() {
* 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.
$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[]
if ( is_null( $this->terms ) ) {
$this->terms = get_terms( $this->name, array( 'hide_empty' => false ) );
* Get a derived class instance.
* @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.
public static function instance( $type = 'taxonomy', $name = '' ) {
return parent::instance( $type, $name );