get_role


get_role ( $role )

Parameters:
  • (string) $role Role name.
Returns:
  • (WP_Role|null) WP_Role object if found, null if the role does not exist.
Defined at:

Description

Retrieve role object.

Related Functions

get_profile, get_locale, get_user_locale, get_footer, get_rss

Top Google Results

User discussions

wpseek mobile