Property | Type | Description | |
---|---|---|---|
$admin_email | the admin email address set in the WP admin panel | ||
$atom | |||
$blogname | |||
$charset | string | ||
$description | string | ||
$id | the ID of a site in multisite | ||
$language | the language setting ex: en-US | ||
$language_attributes | of language attributes for usage in the tag | ||
$multisite | true if multisite, false if plain ole' WordPress | ||
$name | string | ||
$pingback_url | for people who like trackback spam | ||
$rdf | string | ||
$rss | |||
$rss2 | |||
$siteurl | |||
$theme | [TimberTheme](#TimberTheme) | ||
$title | string | ||
$url |
Method | Description | |
---|---|---|
__construct ( string | integer $site_name_or_id = null ) | Constructs a TimberSite object | |
__get ( string $field ) : mixed | ||
get_link ( ) : string | ||
get_url ( ) : string | ||
icon ( ) | ||
link ( ) : string | Returns the link to the site's home. | |
meta ( $field ) | ||
update ( string $key, mixed $value ) | ||
url ( ) : string |
Method | Description | |
---|---|---|
icon_multisite ( $site_id ) | ||
init ( ) | Executed for all types of sites: both multisite and "regular" | |
init_as_multisite ( integer $site_id ) | ||
init_as_singlesite ( ) | Executed for single-blog sites | |
switch_to_blog ( string | integer | null $site_name_or_id ) : integer | Switches to the blog requested in the request |
public __construct ( string | integer $site_name_or_id = null ) | ||
$site_name_or_id | string | integer |
protected init ( ) |
protected init_as_multisite ( integer $site_id ) | ||
$site_id | integer |
protected init_as_singlesite ( ) |
public $admin_email |
public $language_attributes |
public [TimberTheme](#TimberTheme) $theme | ||
return | [TimberTheme](#TimberTheme) |