Title: Pull content
Last modified: February 27, 2020

---

# Pull content

 *  Resolved [hadimneef](https://wordpress.org/support/users/hadimneef/)
 * (@hadimneef)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/pull-content/)
 * Hi, Is there any way to pull content from one blog to another via api?
    I know
   there’s broadcast_children() function which takes post id and child blog id… 
   What I want is the opposite post id and PARENT blog id.
 * Something else, I want to give the the blog admin of child post the flexibility
   to change anything but when parent post deleted, all children deletes. How can
   I achieve that?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/pull-content/#post-12487016)
 * You can “pull” content by doing a switch_to_blog() to the parent blog and then
   broadcast_children().
 * Regarding your second point, it should already be so that whatever happens to
   the parents also happens to the **linked** children: updating, trashing, restoring
   and deleting. Is that not the case?
 *  Thread Starter [hadimneef](https://wordpress.org/support/users/hadimneef/)
 * (@hadimneef)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/pull-content/#post-12487200)
 * Thank you, Yes switch to blog should solve the problem.
 * The second point, if child post updated the post title does that make it unlinked
   from parent post automatically? If yes then is there a way to not unlink it after
   any change? If no it shouldn’t be unlinked automatically then its my fault as
   I did modified some of the plugin codes for testing.
    I’m asking that because
   I want to make posts repository inside the network where every site could post
   and pull posts from that repository, then whoever pulled a post he can modify
   it as he want “basically translate it” but when the original post deleted, it
   should also delete all of the copied posts. In simple words the parent post should
   not have any control on children posts other than deleting them.
 * Thank you in advance.
    -  This reply was modified 6 years, 3 months ago by [hadimneef](https://wordpress.org/support/users/hadimneef/).
    -  This reply was modified 6 years, 3 months ago by [hadimneef](https://wordpress.org/support/users/hadimneef/).
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/pull-content/#post-12487324)
 * The posts do not automatically unlink, but there’s an add-on for that: [Unlink On Edit](https://broadcast.plainviewplugins.com/addon/unlink-on-edit/).
 * Then you mention that nothing should happen to the child posts other than deletions.
   Perhaps you can do this by just disabling _all_ updates?
 * You can do this by hooking into broadcasting_after_switch_to_blog and setting-
   >broadcast_here to false all the time. You can query whether this is a new broadcast
   or an update using
 * `$bcd->parent_broadcast_data->has_linked_child_on_this_blog()`
 *  Thread Starter [hadimneef](https://wordpress.org/support/users/hadimneef/)
 * (@hadimneef)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/pull-content/#post-12490465)
 * I will try it, Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Pull content’ is closed to new replies.

 * ![](https://ps.w.org/threewp-broadcast/assets/icon.svg?rev=1013783)
 * [Broadcast](https://wordpress.org/plugins/threewp-broadcast/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/threewp-broadcast/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/threewp-broadcast/)
 * [Active Topics](https://wordpress.org/support/plugin/threewp-broadcast/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/threewp-broadcast/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/threewp-broadcast/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [hadimneef](https://wordpress.org/support/users/hadimneef/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/pull-content/#post-12490465)
 * Status: resolved