Title: Sync libraries programmatically
Last modified: November 21, 2019

---

# Sync libraries programmatically

 *  [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/sync-libraries-programmatically/)
 * Author of [Broadcast](https://wordpress.org/plugins/threewp-broadcast/) here.
 * Some users of mine use Broadcast together with H5P to broadcast pages with h5p
   content to other sites on the same WP network install.
 * Broadcast requires that the same libraries be installed on all sites. This requires
   the users to manually install the same libraries on all 10, 100, 1000 sites.
 * Is there a way programmatically sync the libraries? Something like:
 * 1. h5p()->get_installed_libraries();
    2. h5p()->install_libraries( lib1, lib2,
   lib3 );

Viewing 1 replies (of 1 total)

 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/sync-libraries-programmatically/#post-12162924)
 * Hi,
 * I agree it would be preferable if the libraries were installed/managed on a network
   level instead of per site. I guess it was just convenience and a lack of time
   that resulted in the current solution to just get the plugin working on network
   installs. Hopefully, I or someone else will get the time to look into how can
   make this better and get the content type(libraries) management to work from 
   the network admin level.
    I’m a bit worried that a programmatic sync solution
   will just add more challenges, but feel free to look more into this. Maybe it
   could be an option we add to network installs until we can get proper network
   management.

Viewing 1 replies (of 1 total)

The topic ‘Sync libraries programmatically’ is closed to new replies.

 * ![](https://ps.w.org/h5p/assets/icon.svg?rev=986118)
 * [Interactive Content – H5P](https://wordpress.org/plugins/h5p/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/h5p/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/h5p/)
 * [Active Topics](https://wordpress.org/support/plugin/h5p/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/h5p/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/h5p/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/sync-libraries-programmatically/#post-12162924)
 * Status: not resolved