plan_id (BIGINT) * hp_user => user_id (BIGINT) * hp_price => price (VARCHAR) * hp_order => order_id (BIGINT) * hp_start_date => start_date (DATETIME) * hp_end_date => end_date (DATETIME) */ class TMDO_Memberships_Query extends TMDO_Query_Interceptor_Base { /** * Returns the module identifier. * * @return string Module name. */ protected function get_module(): string { return 'memberships'; } /** * Returns the post types this interceptor handles. * * @return string[] Post type slugs. */ protected function get_post_types(): array { return array( 'hp_membership' ); } /** * Returns the custom table name. * * @return string Table name without prefix. */ protected function get_table(): string { return 'hpct_memberships'; } /** * Returns the meta_key to column mapping for hpct_memberships. * * @return array Meta key to column name map. */ protected function get_meta_key_map(): array { return array( 'hp_plan' => 'plan_id', 'hp_user' => 'user_id', 'hp_price' => 'price', 'hp_order' => 'order_id', 'hp_start_date' => 'start_date', 'hp_end_date' => 'end_date', ); } }