Title: Multiple users, same address book
Last modified: March 22, 2026

---

# Multiple users, same address book

 *  Resolved [ididthat](https://wordpress.org/support/users/ididthat/)
 * (@ididthat)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/multiple-users-same-address-book/)
 * We have a use case where multiple users enter orders on a private website. They
   all share the same address book. In previous versions, we simply edited $user_id
   = 8 and hard coded that in the plugin. All the users shared and edited the same
   address book. 
   With the recent changes in version 3+ we were faced with the same
   issue. Seemed simple enough just to modify – “function get_current_customer” 
   to return $user_id = 8. But this doesn’t work, It just runs in a loop until it
   finally times out.
 * Any suggestions on how we can get all the users on a single site to use the same
   address book?

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

 *  Plugin Author [Matt Harrison](https://wordpress.org/support/users/matt-h/)
 * (@matt-h)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/multiple-users-same-address-book/#post-18859048)
 * Hi,
 * I’m not sure what you changed the function to, but my guess is because it needs
   to return a customer object and not an id it was not working.
 * That said, we have a filter in place so you can do this by adding the code to
   either your theme or through a custom plugin. That way you don’t need to be modifying
   the plugin every time we release a new version update.
 * You can add this filter to override it:
 *     ```wp-block-code
       add_filter(	'wc_address_book_current_user_id',	function ( $user_id ) {		return 8;	});
       ```
   
 *  Thread Starter [ididthat](https://wordpress.org/support/users/ididthat/)
 * (@ididthat)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/multiple-users-same-address-book/#post-18859313)
 * Thank you. That worked as soon as I used a different user_id. (Not 8 that we 
   had been using for a few years)
   I realized the number of addresses for this user
   has gotten so large they won’t load. For this user:wc_address_book_shipping =
   451 KBwc_address_book_billing = 286 KBwc_address_book = 219 KBThat seems to choke
   the page load.
 * Can I suggest a feature for a future version to be able to trim the address book
   by date or keep the XX most recent addresses?
 *  Plugin Author [Matt Harrison](https://wordpress.org/support/users/matt-h/)
 * (@matt-h)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/multiple-users-same-address-book/#post-18859888)
 * Interesting. A huge address book could cause issues. I could see us adding a 
   sort of pagination feature to it which would probably solve the page load issue
   you are having.
 *  Thread Starter [ididthat](https://wordpress.org/support/users/ididthat/)
 * (@ididthat)
 * [2 months ago](https://wordpress.org/support/topic/multiple-users-same-address-book/#post-18860491)
 * If it helps. The users primarily rely on auto-complete with the large list. They
   don’t manually select a name, they just start typing. I would imagine most users
   with very large lists would be doing the same.
   thanks-=theron

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-users-same-address-book%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woo-address-book/assets/icon-256x256.png?rev=2950910)
 * [Address Book for WooCommerce](https://wordpress.org/plugins/woo-address-book/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-address-book/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-address-book/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-address-book/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-address-book/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-address-book/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ididthat](https://wordpress.org/support/users/ididthat/)
 * Last activity: [2 months ago](https://wordpress.org/support/topic/multiple-users-same-address-book/#post-18860491)
 * Status: resolved