sender_id (BIGINT) * hp_recipient => recipient_id (BIGINT) * hp_listing => listing_id (BIGINT) * hp_read => is_read (TINYINT) */ class TMDO_Messages_Query extends TMDO_Query_Interceptor_Base { /** * Returns the module identifier. * * @return string Module name. */ protected function get_module(): string { return 'messages'; } /** * Returns the post types this interceptor handles. * * @return string[] Post type slugs. */ protected function get_post_types(): array { return array( 'hp_message' ); } /** * Returns the custom table name. * * @return string Table name without prefix. */ protected function get_table(): string { return 'hpct_messages'; } /** * Returns the meta_key to column mapping for hpct_messages. * * @return array Meta key to column name map. */ protected function get_meta_key_map(): array { return array( 'hp_sender' => 'sender_id', 'hp_recipient' => 'recipient_id', 'hp_listing' => 'listing_id', 'hp_read' => 'is_read', ); } }