Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter justinsnell

    (@justinsnell)

    I don’t get fatal errors

    Output Below (I edited the site name with <SITE-1>):

    2022-01-11 16:52:01.3095 ThreeWP_Broadcast: WooCommerce: v3 save_post workaround not needed.
    2022-01-11 16:52:01.5336 ThreeWP_Broadcast: We are currently on blog <SITE-1> (3).
    2022-01-11 16:52:01.5677 ThreeWP_Broadcast: Post_Queue: Starting prepare_meta_box.
    2022-01-11 16:52:01.5678 ThreeWP_Broadcast: Post_Queue: Build process data.
    2022-01-11 16:52:01.5745 ThreeWP_Broadcast: Post_Queue: Built process data.
    2022-01-11 16:52:01.5746 ThreeWP_Broadcast: Post_Queue: Finished prepare_meta_box.
    2022-01-11 16:52:01.0578 ThreeWP_Broadcast: Preparing the broadcasting data.
    2022-01-11 16:52:01.5789 ThreeWP_Broadcast: Assuming custom fields and taxonomies are to be broadcasted.
    2022-01-11 16:52:01.5798 ThreeWP_Broadcast: Broadcasting data prepared.
    2022-01-11 16:52:01.6289 ThreeWP_Broadcast: Queue: Data 9406 inserted.
    2022-01-11 16:52:01.6291 ThreeWP_Broadcast: Queue: Inserting queue item. 374 bytes.
    2022-01-11 16:52:01.6345 ThreeWP_Broadcast: Queue: Item 17933 inserted.
    2022-01-11 16:52:01.6347 ThreeWP_Broadcast: Post_Queue: Finished queueing. Stopping Broadcast.
    Thread Starter justinsnell

    (@justinsnell)

    Well the post successfully appears in Site 2 after creating is in Site 1 with broadcast to Site 2, wouldn’t that make it a successful broadcast? Let me try with the debug mode on to see if anything pops up. Thanks!

    Thread Starter justinsnell

    (@justinsnell)

    add_action('threewp_broadcast_broadcasting_before_restore_current_blog', 'my_test_bcd');
    
    function my_test_bcd( $action ) {
    
    	$bcd = $action->broadcasting_data; // convenience
    
    	$bcd_test = $bcd->new_post( 'id' );
    
    	update_option( 'bcd_test', $bcd_test );
    
     }

    the $bcd_test variable ends up empty/null something. I am doing something wrong here. Hopefully you can help.

    • This reply was modified 6 years, 9 months ago by justinsnell.
    • This reply was modified 6 years, 9 months ago by justinsnell.
Viewing 3 replies - 1 through 3 (of 3 total)