Summery Summery

Get the WP_Theme object for a theme.

Syntax Syntax

Theme_Upgrader::theme_info( string $theme = null )

Parameters Parameters


(string) (Optional) The directory name of the theme. This is optional, and if not supplied, the directory name from the last result will be used.

Default value: null

Return Return

(WP_Theme|false) The theme's info object, or false $theme is not supplied and the last result isn't set.

Source Source

File: wp-admin/includes/class-theme-upgrader.php

			return $return;

		// Change to maintenance mode. Bulk edit handles this separately.
		if ( ! $this->bulk ) {
			$this->maintenance_mode( true );

		return $return;


Changelog Changelog

Version Description
3.0.0 The $theme argument was added.
2.8.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.