久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

WordPress: WPMU Functions/get current site:修訂間差異

來自站長百科
跳轉(zhuǎn)至: 導航、? 搜索
(新頁面: {{Stub}} Returns the following items: id domain path site_name ==Usage== To get the blog id, you would use the following code: $current_site = get_current_site(); echo $curr...)
?
無編輯摘要
?
第2行: 第2行:


Returns the following items:
Returns the following items:
{{Stub}}
返回下面的內(nèi)容:
? id
? domain
? path
? site_name


?? id
?? id
第9行: 第18行:


==Usage==
==Usage==
==用法==


To get the blog id, you would use the following code:
To get the blog id, you would use the following code:
你需要使用下面的代碼,得到博客id:
? $current_site = get_current_site();
? $current_site = get_current_site();
echo $current_site->id;
$current_site = get_current_site();
? echo $current_site->id;
? echo $current_site->id;


Or, to do the same, but in only one line:
Or, to do the same, but in only one line:
? ?
? ?
或者只在一行中,執(zhí)行同樣的操作:
? echo get_current_site()->id;
? echo get_current_site()->id;
echo get_current_site()->id;


==Other==
==Other==
==其它的==
The function as found in footer.php of most Wordpress themes:
The function as found in footer.php of most Wordpress themes:
函數(shù)在WordPress大多數(shù)主題的footer.php中:


<?php $current_site = get_current_site(); ?>
<?php $current_site = get_current_site(); ?>


<?php $current_site = get_current_site(); ?>


Need content to help solve the following PHP fatal error:
Need content to help solve the following PHP fatal error:
需要內(nèi)容幫助解決下面的PHP嚴重錯誤:


Fatal error: Call to undefined function get_current_site() in /blah/www.mysite.com/wp-content/themes/blah/footer.php on line 2
Fatal error: Call to undefined function get_current_site() in /blah/www.mysite.com/wp-content/themes/blah/footer.php on line 2
嚴重錯誤:調(diào)用/blah/www.mysite.com/wp-content/themes/blah/footer.php第二行中的未定義的函數(shù)

2008年9月26日 (五) 14:52的最新版本

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.

Returns the following items:

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.

返回下面的內(nèi)容:

 id
 domain
 path
 site_name
 id
 domain
 path
 site_name

Usage[ ]

用法[ ]

To get the blog id, you would use the following code:

你需要使用下面的代碼,得到博客id:

$current_site = get_current_site();
echo $current_site->id;

$current_site = get_current_site();

echo $current_site->id;

Or, to do the same, but in only one line:

或者只在一行中,執(zhí)行同樣的操作:

echo get_current_site()->id;

echo get_current_site()->id;

Other[ ]

其它的[ ]

The function as found in footer.php of most Wordpress themes:

函數(shù)在WordPress大多數(shù)主題的footer.php中:

<?php $current_site = get_current_site(); ?>

<?php $current_site = get_current_site(); ?>

Need content to help solve the following PHP fatal error:

需要內(nèi)容幫助解決下面的PHP嚴重錯誤:

Fatal error: Call to undefined function get_current_site() in /blah/www.mysite.com/wp-content/themes/blah/footer.php on line 2

嚴重錯誤:調(diào)用/blah/www.mysite.com/wp-content/themes/blah/footer.php第二行中的未定義的函數(shù)