WordPress at a glance
function is not described

WP_Widget_Tag_Cloud::_get_current_taxonomy() public WP 4.4.0

Retrieves the taxonomy for the current Tag cloud widget instance.

{} It's a method of the class: WP_Widget_Tag_Cloud{}

No Hooks.

Return

String. Name of the current taxonomy if set, otherwise 'post_tag'.

Usage

$WP_Widget_Tag_Cloud = new WP_Widget_Tag_Cloud();
$WP_Widget_Tag_Cloud->_get_current_taxonomy( $instance );
$instance(array) (required)
Current settings.

Changelog

Since 4.4.0 Introduced.

Code of WP_Widget_Tag_Cloud::_get_current_taxonomy() WP 5.7.2

<?php
public function _get_current_taxonomy( $instance ) {
	if ( ! empty( $instance['taxonomy'] ) && taxonomy_exists( $instance['taxonomy'] ) ) {
		return $instance['taxonomy'];
	}

	return 'post_tag';
}