To protect you from accidentally editing member orders, the core PMPro plugin leaves the order’s unique code
, payment_transaction_id
, and subscription_transaction_id
as read-only. There are certain cases where the administrator or membership manager may need to edit certain fields on a member’s order.
This recipe uses the pmpro_orders_read_only_fields
filter to make all fields or certain fields editable for these cases.
The Code Recipe
Adding the recipe to your website
Copy and paste this code recipe into a helper PMPro Customizations plugin.
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.