프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 |
public $language_attributes |