register_block_core_footnotes

The timeline below displays how wordpress function register_block_core_footnotes has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Registers the `core/footnotes` block on the server.
 *
 * @since 6.3.0
 */
function register_block_core_footnotes()
{
    register_block_type_from_metadata(__DIR__ . '/footnotes', array('render_callback' => 'render_block_core_footnotes'));
}

WordPress Version: 6.4

/**
 * Registers the `core/footnotes` block on the server.
 *
 * @since 6.3.0
 */
function register_block_core_footnotes()
{
    foreach (array('post', 'page') as $post_type) {
        register_post_meta($post_type, 'footnotes', array('show_in_rest' => true, 'single' => true, 'type' => 'string', 'revisions_enabled' => true));
    }
    register_block_type_from_metadata(__DIR__ . '/footnotes', array('render_callback' => 'render_block_core_footnotes'));
}

WordPress Version: 6.3

/**
 * Registers the `core/footnotes` block on the server.
 *
 * @since 6.3.0
 */
function register_block_core_footnotes()
{
    foreach (array('post', 'page') as $post_type) {
        register_post_meta($post_type, 'footnotes', array('show_in_rest' => true, 'single' => true, 'type' => 'string'));
    }
    register_block_type_from_metadata(__DIR__ . '/footnotes', array('render_callback' => 'render_block_core_footnotes'));
}