Found a solution on the forum, however...
add_action( 'mb_relationships_init', function () {
MB_Relationships_API::register( array(
'id' => 'stud_to_teach',
'from' => array(
'object_type' => 'user',
'query_args' => array( 'role__in' => 'student' ),
'meta_box' => array(
'title' => 'Manages',
'field_title' => 'Select Users',
),
),
'to' => array(
'object_type' => 'user',
'query_args' => array( 'role__in' => 'teacher' ),
'meta_box' => array(
'title' => 'Manages users',
'field_title' => 'Select Users',
),
),
) );
} );
This shows the field on both user role's profile. Can I make it show vice versa?
Eg. Teacher's profile can choose student, student can choose teacher