Skip to content

Divi doesn't honor default content added to draft posts. #737

@Hug0-Drelon

Description

@Hug0-Drelon

Divi builder doesn't honor default content added to draft posts. You can easily reproduce with the following code:

add_filter(
    'default_content',
    function () {
        return '[et_pb_section fb_built="1" theme_builder_area="post_content" _builder_version="4.27.4" _module_preset="default"][et_pb_row _builder_version="4.27.4" _module_preset="default" theme_builder_area="post_content"][et_pb_column _builder_version="4.27.4" _module_preset="default" type="4_4" theme_builder_area="post_content"][et_pb_text _builder_version="4.27.4" _module_preset="default" theme_builder_area="post_content" hover_enabled="0" sticky_enabled="0"]<p>Here is my text.</p>[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]';
    }
);

I would expect the content to be shown when creating a new post. Indeed, default_content is used to populated post returned by get_default_post_to_edit() which is used when creating a new post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions