Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: taxonomy_exists() | Determines whether the taxonomy name exists. |
Retrieves the taxonomy for the current Tag cloud widget instance.
(array) (Required) Current settings.
(string) Name of the current taxonomy if set, otherwise 'post_tag'.
File: wp-includes/widgets/class-wp-widget-tag-cloud.php
public function _get_current_taxonomy( $instance ) { if ( ! empty( $instance['taxonomy'] ) && taxonomy_exists( $instance['taxonomy'] ) ) { return $instance['taxonomy']; } return 'post_tag'; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_widget_tag_cloud/_get_current_taxonomy