Support

Account

Home Forums Gutenberg Programmatically set blocks initial value Reply To: Programmatically set blocks initial value

  • Ok, my bad, I was stupid:

    The options should be wrapped in data array:

    'template' => [
         ['acf/my-block', [
           'data' => [
            'name' => 'default name',
           ]
         ]]
    ];

    I will still leave the post here so anyone with similar problem could benefit from it.