From f4d2f9b84aa7dc9d2f81872ec6dd4fe92b3b7030 Mon Sep 17 00:00:00 2001 From: LyNguyen Date: Mon, 20 Jul 2026 16:10:38 +0700 Subject: [PATCH] Support Woo HPOS --- src/Parsers/Settings.php | 2 +- src/Unparsers/Settings.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parsers/Settings.php b/src/Parsers/Settings.php index 770edc6..ca72c4b 100644 --- a/src/Parsers/Settings.php +++ b/src/Parsers/Settings.php @@ -51,7 +51,7 @@ private function parse_location(): self { unset( $this->post_types ); unset( $this->taxonomies ); unset( $this->type ); - } elseif ( in_array( $object_type, [ 'block', 'user', 'comment' ], true ) ) { + } elseif ( in_array( $object_type, [ 'block', 'user', 'comment', 'order' ], true ) ) { unset( $this->post_types ); unset( $this->taxonomies ); unset( $this->settings_pages ); diff --git a/src/Unparsers/Settings.php b/src/Unparsers/Settings.php index 6e89d11..7007078 100644 --- a/src/Unparsers/Settings.php +++ b/src/Unparsers/Settings.php @@ -46,7 +46,7 @@ private function unparse_location(): self { return $this; } - if ( in_array( $this->type, [ 'user', 'comment' ], true ) ) { + if ( in_array( $this->type, [ 'user', 'comment', 'order' ], true ) ) { $this->object_type = $this->type; unset( $this->post_types );