Hi Long,
Still can't get this one working. I think that I did not get the commit working, as the php code does not look right:
<?php
add_action( 'mb_relationships_init', 'your_prefix_function_name' );
function your_prefix_function_name() {
MB_Relationships_API::register( [
'id' => 'university_user',
'from' => [
'object_type' => 'post',
'post_type' => 'university',
'field' => [
'query_args' => [
'5w1x2lx5oq7' => [
'id' => '5w1x2lx5oq7',
'key' => 'orderby',
'value' => 'title',
],
'og7o0qgfecd' => [
'id' => 'og7o0qgfecd',
'key' => 'order',
'value' => 'ASC',
],
],
'max_clone' => '1',
],
],
'to' => [
'object_type' => 'user',
'post_type' => 'post',
'taxonomy' => 'category',
'field' => [
'query_args' => [
'iqoxqzev60p' => [
'id' => 'iqoxqzev60p',
'key' => 'orderby',
'value' => 'title',
],
'mo9n62730iq' => [
'id' => 'mo9n62730iq',
'key' => 'order',
'value' => 'ASC',
],
],