Home Forums ACF PRO Default Values on back-end


Default Values on back-end

  • Hi,

    I added default value option for Gutenberg block for Image type

    // sets default values for Image field
    add_action('acf/render_field_settings/type=image', 'add_default_value_to_image_field');
      function add_default_value_to_image_field($field) {
        acf_render_field_setting( $field, array(
          'label'      => 'Default Image',
          'instructions'    => 'Appears when creating a new block',
          'type'      => 'image',
          'name'      => 'default_value',

    When creating new post/page with that block, default image doesn’t show, at least not before post has been saved and reloaded. Can this be somehow enabled, to show immediately after the block has been inserted.


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.