Support

Account

Home Forums General Issues Call to undefined function add_row()

Solved

Call to undefined function add_row()

  • Hi,

    I’m trying to write a plugin which import datas and create (or update) posts from these datas.

    When I try to use add_row() function, I got a fatal error : Call to undefined function add_row()…

    For example :

    foreach($datas as $data) {
    	$row_type = array(
    		'name'	  => 'Type',
    		'value'	  => $type,
    		'display' => false);
    	add_row('specification', $row_type, $post_id);
    }

    I tried many things :

    include_once(ABSPATH . 'wp-content/plugins/advanced-custom-fields/acf.php' );
    require_once(get_template_directory() . '/inc/acf-field-groups.php' );

    add_action('acf/init', 'my_function');

    But I still have this error…

    Does someone know why I can’t use it ?

  • I’m having the issue as well.

  • This is only available in version 5.3.2, which I think has not yet been released.

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

The topic ‘Call to undefined function add_row()’ is closed to new replies.