Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_get_themes()

3 tags 1 category

wp_get_themes() — Returns an array of WP_Theme objects based on the arguments. Despite advances over get_themes(), this function is quite expensive, and grows linearly with additional themes. Stick to wp_get_theme() if possible.

Inputs: $args (array): Optional. The search arguments. Field $errors (mixed): True to return themes with errors, false to return themes without errors, null to return all themes. Default false. Field $allowed (mixed): (Multisite) True to return only allowed themes for a site. False to return only disallowed themes for a site. ‘site’ to return only site-allowed themes. ‘network’ to return only network-allowed themes. Null to return all themes. Default null. Field $blog_id (int): (Multisite) The blog ID used to calculate which themes are allowed. Default 0, synonymous for the current blog.

Returns WP_Theme[]: Array of WP_Theme objects.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…