• I have installed the latest version (19.1.0) of this plugin to test out the UI to create and update block bindings in block inspector controls. I followed this link (the section under Block binding):

    Roadmap to 6.7

    I have this code and it works to connect this with the core image block:

    register_post_meta(
    'post',
    'random_image2',
    array(
    'show_in_rest' => true,
    'single' => true,
    'type' => 'string',
    'sanitize_callback' => 'esc_url_raw',
    'default' => get_theme_file_uri( 'images/default.jpg' )
    )
    );

    is there a way to add in the default image alt text and image title inside the same register_post_meta() function?

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.