populate_roles_260

函数


populate_roles_260 ( No parameters )
定义位置
  • wp-admin/includes/schema.php
    , line 894
引入
2.6.0
弃用

Create and modify WordPress roles for WordPress 2.6.

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

	if ( ! empty( $role ) ) {
		$role->add_cap( 'update_plugins' );
		$role->add_cap( 'delete_plugins' );
	}
}