Support

Account

Home Forums General Issues Add row option

Solved

Add row option

  • Hi, i’m trying to add a row to a repeater (rooms_id) in options page with this code:

    $row = array(
            'room' => $term['term_id'],
            'id'   => $arr['id']
        );
    
     $i = add_row('rooms_id', $row);
    

    where $term[‘term_id’] and $arr[‘id’] are numbers, but it doesn’t work.
    Any suggestions?

  • I solved the problem:

    $row = array(
            'room' => $term['term_id'],
            'id'   => $arr['id']
        );
    
     $i = add_row('rooms_id', $row, 'option');
    
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Add row option’ is closed to new replies.