角色初始化后,允许插件添加自己的角色。
原型
do_action( 'wp_roles_init', WP_Roles $this )
参数
$this
(WP_Roles)
对WP_Roles对象的引用。
源文件
路径:wp-includes/class-wp-roles.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_roles_init/
角色初始化后,允许插件添加自己的角色。
do_action( 'wp_roles_init', WP_Roles $this )
$this
(WP_Roles)
对WP_Roles对象的引用。
路径:wp-includes/class-wp-roles.php
英文文档:https://developer.wordpress.org/reference/hooks/wp_roles_init/
请在后台设置小工具!