populate_roles_300()

 

File: wp-admin/includes/schema.php

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' );
	}
}

参数:populate_roles_300()

{acontent5}{acontent3}

You must log in before being able to contribute a note or feedback.

60.00% (3) 次Baidu访问
40.00% (2) 次Sogou访问
  • 蜘蛛:Baidu,3次,更新时间:2019-05-14 01:06:24
  • 蜘蛛:Sogou,2次,更新时间:2019-05-23 03:39:00

参与评论