Skip to content

Instantly share code, notes, and snippets.

@suiteplugins
Last active November 11, 2015 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suiteplugins/8778af0bc9b9b4712283 to your computer and use it in GitHub Desktop.
Save suiteplugins/8778af0bc9b9b4712283 to your computer and use it in GitHub Desktop.
Setting custom types in UM Relationships
add_filter('um_get_relation_types', 'um_custom_relationship_types', 12, 1);
function um_custom_relationship_types($types){
$types = array(
'boss' => __('Boss','um-relationships'),
'former-boss' => __('Former Boss','um-relationships'),
'mentor' => __('Former Boss','um-relationships'),
'assistant' => __('Assistant','um-relationships')
);
return $types;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment