WPDev.one
Core Function
View Source on Trac ↗

wp_popular_terms_checklist()

wp_popular_terms_checklist( mixed $taxonomy, mixed $default_term = 0, mixed $number = 10, mixed $display = true )

Retrieves a list of the most popular terms from the specified taxonomy.

Parameters 1 required

Name / Type Description
$taxonomy
string

Taxonomy to retrieve terms from.

Required
$default_term
int

Optional. Not used.

$number
int

Optional. Number of terms to retrieve. Default 10.

$display
bool

Optional. Whether to display the list as well. Default true.

Return Value

(int[])
Array of popular term IDs.

Function Information

Since Version
2.5.0
Source File
wp-admin/includes/template.php
Advertisement