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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.