wp_get_post_content_block_attributes example

'defaultCommentStatus' => get_option( 'default_comment_status' ),
        'avatarURL'            => get_avatar_url(
            '',
            array(
                'size'          => 96,
                'force_default' => true,
                'default'       => get_option( 'avatar_default' ),
            )
        ),
    );

    $post_content_block_attributes = wp_get_post_content_block_attributes();

    if ( ! empty( $post_content_block_attributes ) ) {
        $editor_settings['postContentAttributes'] = $post_content_block_attributes;
    }

    /** * Filters the settings to pass to the block editor for all editor type. * * @since 5.8.0 * * @param array $editor_settings Default editor settings. * @param WP_Block_Editor_Context $block_editor_context The current block editor context. */
Home | Imprint | This part of the site doesn't use cookies.