Last active
November 11, 2015 04:28
-
-
Save suiteplugins/8778af0bc9b9b4712283 to your computer and use it in GitHub Desktop.
Setting custom types in UM Relationships
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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