您是否尝试过此插件:http://wordpress.org/extend/plugins/bbpress-string-swap/ ?
或者,如果您想编码,可以使用此代码段来更改名称。您应该将其插入到函数中。php
add_filter( \'bbp_get_dynamic_roles\', \'my_bbp_custom_role_names\');
function my_bbp_custom_role_names(){
return array(
// Keymaster
bbp_get_keymaster_role() => array(
\'name\' => __( \'Keymaster\', \'bbpress\' ),
\'capabilities\' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
),
// Moderator
bbp_get_moderator_role() => array(
\'name\' => __( \'Moderator\', \'bbpress\' ),
\'capabilities\' => bbp_get_caps_for_role( bbp_get_moderator_role() )
),
// Participant
bbp_get_participant_role() => array(
\'name\' => __( \'Participant\', \'bbpress\' ),
\'capabilities\' => bbp_get_caps_for_role( bbp_get_participant_role() )
),
// Spectator
bbp_get_spectator_role() => array(
\'name\' => __( \'Spectator\', \'bbpress\' ),
\'capabilities\' => bbp_get_caps_for_role( bbp_get_spectator_role() )
),
// Blocked
bbp_get_blocked_role() => array(
\'name\' => __( \'Blocked\', \'bbpress\' ),
\'capabilities\' => bbp_get_caps_for_role( bbp_get_blocked_role() )
)
);
}