Parsed: 117527
<?php /** * User API: WP_Roles class * * @package WordPress * @subpackage Users * @since 4.4.0 */ #[AllowDynamicProperties] /* class WP_Roles */ /* function WP_Roles::__construct() – Constructor */ /* function WP_Roles::__call() – Make private/protected methods readable for backward compatibility. */ /* function WP_Roles::_init() – Set up the object properties. */ /* function WP_Roles::reinit() – Reinitialize the object */ /* function WP_Roles::add_role() – Add role name with capabilities to list. */ /* function WP_Roles::remove_role() – Remove role by name. */ /* function WP_Roles::add_cap() – Add capability to role. */ /* function WP_Roles::remove_cap() – Remove capability from role. */ /* function WP_Roles::get_role() – Retrieve role object by name. */ /* function WP_Roles::get_names() – Retrieve list of role names. */ /* function WP_Roles::is_role() – Whether role name is currently in the list of available roles. */ /* function WP_Roles::init_roles() – Initializes all of the available roles. */ /* function WP_Roles::for_site() – Sets the site to operate on. Defaults to the current site. */ /* function WP_Roles::get_site_id() – Gets the ID of the site for which roles are currently initialized. */ /* function WP_Roles::get_roles_data() – Gets the available roles data. */