Home Forums Add-ons Repeater Field add_row adds multiple rows


add_row adds multiple rows

    • enky00

    • May 19, 2020 at 5:35 pm

    I just using add_row. But instead of just adding one new row, it adds 3 new rows?

    The following code is inside the functions.php. For testing, I just reload the page, then reload the post in the backend.

    $usersLeadIDtest2 = "846"; //user id
    $testleadId = "23541"; // id of a post, cpt
    if(is_admin() == false){
        $row = array(
            'superhaendler_bisherigeangebote_repeater_user' => $usersLeadIDtest,
            'superhaendler_bisherigeangebote_repeater_angebot'  => 'lorem ipsum'
        add_row('superhaendler_bisherigeangebote_repeater', $row, $testleadId);
Viewing 1 post (of 1 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.