fix(2meet-data-optimizer-hivepress-addon): declare post_type scopes on HivePress post groups
- hp_listing_core / hp_request_core / hp_vendor_core declare hp_listing / hp_request / hp_vendor, matching core (PR-033), so the AddOn keeps scoped routing once core stops registering them (PR-020b) - Test: with tmdo_post_scoped_routing on, every key of each group resolves to its own post type's group; legacy owner and hash pins unchanged - Verify: HP unit 145 / integration 49 OK - PR: PR-033b
This commit is contained in:
@@ -15,8 +15,9 @@
|
||||
* persisted in wpdo_registry_meta (originally registered by core's
|
||||
* TMDO_Post_Fields / TMDO_Member_Fields). Any drift changes the schema hash
|
||||
* and triggers ALTER TABLE on flat tables that may hold aeav_only data.
|
||||
* The three post groups also share keys (hp_status, hp_user, …) and the
|
||||
* entity field index is last-registered-wins, so keep their order.
|
||||
* The three post groups share keys (hp_status, hp_user, …): each declares
|
||||
* its post type so a post's key resolves to its own type's group, while
|
||||
* lookups without a post type keep last-registered-wins — keep their order.
|
||||
*
|
||||
* @package TMDO_HIVEPRESS
|
||||
*/
|
||||
@@ -133,7 +134,8 @@ final class TMDO_HivePress_Entity_Groups {
|
||||
'type' => 'decimal',
|
||||
'label' => 'Hourly rate',
|
||||
),
|
||||
)
|
||||
),
|
||||
array( 'post_types' => array( 'hp_listing' ) )
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -176,7 +178,8 @@ final class TMDO_HivePress_Entity_Groups {
|
||||
'type' => 'integer',
|
||||
'label' => 'View counter',
|
||||
),
|
||||
)
|
||||
),
|
||||
array( 'post_types' => array( 'hp_request' ) )
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -218,7 +221,8 @@ final class TMDO_HivePress_Entity_Groups {
|
||||
'searchable' => true,
|
||||
'label' => 'Average rating',
|
||||
),
|
||||
)
|
||||
),
|
||||
array( 'post_types' => array( 'hp_vendor' ) )
|
||||
);
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user