/home/techb158/dev.aleamaralawal.com/wp-content/themes/Divi/core/components/post
Edit: /home/techb158/dev.aleamaralawal.com/wp-content/themes/Divi/core/components/post/Taxonomy.php (1775B)
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 );
}
}