making other WC Order types (other than subscription) compatible with HPOS and custom fields#295
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
In order to test you would have to create a custom WC order type and then enable HPOS. By default, it will allow you to select the custom WC order type from the SCF Field Groups but it will not show the meta boxes in the custom WC order view. Here is sample code to register a WC order type called "Charges". And the Class would be something simple: |
Currently, other WC Order types than Subscription are not compatible (they don't show up in the edit page) with SCF and HPOS even though they show up in the field group rules when creating them. This PR fixes that.