WIKI使用導(dǎo)航
站長(zhǎng)百科導(dǎo)航
站長(zhǎng)專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營(yíng)銷
- 虛擬主機(jī)管理系統(tǒng)
- 開(kāi)放平臺(tái)
- WIKI程序與應(yīng)用
- 美國(guó)十大主機(jī)
WordPress:WPMU Functions/wpmu validate blog signup
來(lái)自站長(zhǎng)百科
Makes some verifications about new blog. Located : 'wp-includes\wpmu-functions.php'
Blog ID Verifications[ ]
- If not empty
- If not illegal names like :
"www", "web", "root", "admin", "main", "invite", "administrator" - If only lowercase letters and numbers
- Number of letters, at least 4 characters
- If is not contain "underscore", the _ character
- If is not only contain number
- If already exists in DB
- If reserved
Blog Title verifications[ ]
- If not empty
Usage[ ]
To get the blog name, you would use the following:
$blog_id = 'newblog'; //the url given to the new blog E.g. newblog.domain.com $blog_title = 'New Blog'; //the title given to the new blog
$result = wpmu_validate_blog_signup($blog_id, $blog_title);
Return to WPMU_Functions