Support » Plugin: Broadcast » page created with Divi not updated on linked children

  • Eric Malalel

    (@teachlynx)


    I use the Divi Builder from Elegant Themes, and I have broadcasted a Divi page from one site to another.

    The page is updated in the children if I save it using the standard “update” WP button, in wp-admin/post.php… .

    But I can, and I usually, save the Page changes from the Divi Visual Builder, an online editing tool provided with Divi. From there the children page is not updated.

    Is there a way to hook the Broadcast process to the “save” button of the Divi Visual Builder?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    If you can help me find an action that is fired when a post is updated in the builder, I can write a snippet that either

    1. updates existing children automatically
    2. forces a broadcast / update to specific blogs

    The reason for the above two options is that the Divi builder doesn’t have a Broadcast editor meta box available, where child blogs can be selected.

    I can’t seem to find a good action that is called after the page is updated. I have version 3.17.1 if that makes a difference.

    Hello Edward,

    I will investigate this and let you know when I have a clue.

    Right now, any page created with Divi is accessible through the Divi Builder or the standard WP Page editor.

    From the standard WP Page editor, the Broadcast Widget is here and works, so we have a workaround.

    Hello Edward,

    I have identified an AJAX request sent when I click on the “save” button of the Divi Visual Builder, which triggers an action “et_fb_ajax_save”.

    I think we can use this to trigger an update on all blogs where the saved content (post, page or custom post we use) has been linked to children, not copied.

    Is this something we can code on our own, can we find some documentation on how to do it?

    Plugin Author edward_plainview

    (@edward_plainview)

    Ooh! Close!

    I think there is a filter in there that is better, since it’s called after the post is correctly updated.

    Try this snippet:

    add_filter( 'et_fb_ajax_save_verification_result', 'bc_et_fb_ajax_save_verification_result' );
    function bc_et_fb_ajax_save_verification_result( $result )
    {
    	$post_id = intval( $_POST[ 'post_id' ] );
    	ThreeWP_Broadcast()->api()->update_children( $post_id );
    	return $result;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.