Home Forums Add-ons Repeater Field Add_row using inside Rest Api endpoint


Add_row using inside Rest Api endpoint

  • Hey guys,

    Im trying to add rows from data that the user will send from http request, and insert it into a certain repeater field.

    Right now, I’m having troubles with the function that look like that:

    function add_row_to_direction() {
    	$row =
    			'title'            => "Test Title",
    			'directions_group' => array(
    					'direction' => "Test Direction"
    	add_row( "directions", $row, 365 );

    The problem is when i add this test function to the rest api endpoint callback function it does not happens, and if i just call the function inside functions.php all works as expected.
    I hope you guys can help me,
    Thanks a lot,

  • Does anyone has an idea that can help?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.