Updated High Performance Order Storage Upgrade Recipe Book (markdown)
parent
d98ad45d77
commit
b80d4d34f4
|
@ -186,7 +186,7 @@ The above will also change the parameter passed to the metabox to order. So in y
|
|||
function render_xyz_metabox( $post_or_order_object ) {
|
||||
$order = ( $post_or_order_object instanceof WP_Post ) ? wc_get_order( $post_or_order_object->ID ) : $post_or_order_object;
|
||||
|
||||
... rest of the code. $post_or_order_object should not be used directly below this point.
|
||||
// ... rest of the code. $post_or_order_object should not be used directly below this point.
|
||||
}
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue