WordPress开发者和主题制作者的搜索引擎



populate_roles_300 ›

Since3.0.0
已弃用n/a
populate_roles_300 ( 没有参数 )
定义在:
文档:

Create and modify WordPress roles for WordPress 3.0.



源码

function populate_roles_300() {
	$role = get_role( 'administrator' );

	if ( ! empty( $role ) ) {
		$role->add_cap( 'update_core' );
		$role->add_cap( 'list_users' );
		$role->add_cap( 'remove_users' );
		$role->add_cap( 'promote_users' );
		$role->add_cap( 'edit_theme_options' );
		$role->add_cap( 'delete_themes' );
		$role->add_cap( 'export' );
	}
}