How to display Person types of WooCommerce Bookings

WooCommerce Bookings allows to setup person types for price differentiation.

Screenshot of WooCommerce Bookings Person settings
Screenshot of WooCommerce Bookings Person settings

Sometimes you want to display this information, for example as additional product info or on a price page. Person types are stored as custom post type, the additional information is stored as post meta. Here is a simple custom template that retrieves and displays Person types and their metadata with an example of one meta data (the set person base cost) highlighted.

Example Usage: Copy and paste the code into a file “Bookings-Person-types-list-page.php” and upload the file to your theme root folder.

Related Posts

Powered By Related Posts for WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *