vendor_id (BIGINT) * hp_listing => listing_id (BIGINT) * hp_budget => budget (VARCHAR) */ class TMDO_Requests_Query extends TMDO_Query_Interceptor_Base { /** * Returns the module identifier. * * @return string Module name. */ protected function get_module(): string { return 'requests'; } /** * Returns the post types this interceptor handles. * * @return string[] Post type slugs. */ protected function get_post_types(): array { return array( 'hp_request' ); } /** * Returns the custom table name. * * @return string Table name without prefix. */ protected function get_table(): string { return 'hpct_requests'; } /** * Returns the meta_key to column mapping for hpct_requests. * * @return array Meta key to column name map. */ protected function get_meta_key_map(): array { return array( 'hp_vendor' => 'vendor_id', 'hp_listing' => 'listing_id', 'hp_budget' => 'budget', ); } }