Creating Custom Member Types
-
I wrote the following code and put it in functions.php inside of the bp-default theme. Is this wrong? If so where should i put it?
/* * Create the custom coach role for users. */ function createRoles(){ //create coach roles $type = "Coach"; $args = array("labels" => array("name" => "Coaches", "singular_name" => "Coach"), "has_directory" => "Coaches"); bp_register_member_type($name, $args); } add_action('bp_register_member_types', 'createRoles');
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.