545 | | if ( ! is_null( $tax->labels->popular_items ) ) { |
| 545 | /** |
| 546 | * Filters whether to display a tag cloud of the popular items in the taxonomy edit |
| 547 | * screen. |
| 548 | * |
| 549 | * The tag cloud is a feature of non-hierarchy taxonomies. Until WordPress 4.7, the |
| 550 | * tag cloud was visible. Since WordPress 4.7 it is hidden. |
| 551 | * |
| 552 | * Using this filter you can control the visibility of the tag cloud in your custom |
| 553 | * taxonomies. You can display the tag cloud using `__return_true`. |
| 554 | * |
| 555 | * @since 4.7.0 |
| 556 | * |
| 557 | * @param bool $display_tag_cloud Whether to display the popular items tag cloud. |
| 558 | * Default is false, don't display the tag cloud. |
| 559 | * @param object $tax The taxonomy object. |
| 560 | */ |
| 561 | $tag_cloud_visibility = apply_filters( 'display_admin_popular_items_tag_cloud', false, $tax ); |
| 562 | |
| 563 | if ( ! is_null( $tax->labels->popular_items ) && true === $tag_cloud_visibility ) { |
| 564 | |