コード例 #1
0
 function flaten_relation_action($post_id)
 {
     $args = json_decode(urldecode($_POST['multi_relation_options']));
     if ($args->joined_type == 'user_id') {
         $value = get_current_user_id();
     }
     flaten_relation_builder($value, $post_id, $_POST['multi_relation_field'], $args);
 }
コード例 #2
0
 function update_value($value, $post_id, $field)
 {
     // Note: This function can be removed if not used
     $value = flaten_relation_builder($value, $post_id, $field['name']);
     return $value;
 }