2020-05-01 / 2210阅 / 悠然
Add role, if it does not exist.
(string)
(Required)
Role name.
(string)
(Required)
Display name for role.
(bool[])
(Optional)
List of capabilities keyed by the capability name, e.g. array( 'edit_posts' => true, 'delete_posts' => false ).
Default value: array()
(WP_Role|null) WP_Role object if role is added, null if already exists.