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 );