The Orders admin area of PMPro allows you to track sales, confirm payments, and verify successful membership checkouts. If your site is also capturing the member’s mailing information using the Mailing Address Add On, this code recipe display the member’s “Mailing Address” details to the order. It should help to simplify order management for sites that need to send a physical item to their members.

Display Shipping Address in Orders Admin Area Banner Image

About the Code Recipe

Using the Mailing Address Add On for PMPro, you can add a mailing address to your membership checkout page. However, accessing this information requires navigating to the Edit Member screen, which can slow down fulfillment processes.

This code recipe optimizes order processing by displaying the Mailing Address details directly in the order view, eliminating unnecessary steps.

Note: Since the Mailing Address is stored in usermeta, any changes a user makes to their mailing address will be reflected in any and all orders.

Screenshot of Mailing Address shown on Order within the Additional Order Information
Screenshot of order edit screen with Mailing Address fields in the WordPress admin

The Code Recipe

Note: The Mailing Address Add On need to be installed and activated on your membership site for this code recipe to work.

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

Adding Mailing Address Data to All Orders View

You can use the following two action hooks to include Mailing Address details in the Orders table view and the Orders CSV export:

More Useful Articles

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo