函数原型
populate_roles_270()
函数描述
Create and modify WordPress roles for WordPress 2.7.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
File: wp-admin/includes/schema.php.
函数源码
function populate_roles_270() {
$role = get_role( 'administrator' );
if ( ! empty( $role ) ) {
$role->add_cap( 'install_plugins' );
$role->add_cap( 'update_themes' );
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |

