wphooks.info - wp_roles_init

wp_roles_init

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-roles.php:
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
			$this->role_names[ $role ]   = $this->roles[ $role ]['name'];
		}

		/**
		 * After the roles have been initialized, allow plugins to add their own roles.
		 *
		 * @since 4.7.0
		 *
		 * @param WP_Roles $this A reference to the WP_Roles object.
		 */
		do_action( 'wp_roles_init', $this );
	}

	/**
	 * Sets the site to operate on. Defaults to the current site.
	 *
	 * @since 4.9.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *