$value) { $menu[$key] = $value; if ('orders' === $key) { $menu[$slug] = ABPTB_Function::label() . ' ' . __('Bookings', 'abp-transport-booking'); } } if ('dashboard' === $slug || !array_key_exists($slug, $menu)) { $menu[$slug] = ABPTB_Function::label() . ' ' . __('Bookings', 'abp-transport-booking'); } return $menu; } public function maybe_flush_rules(): void { if (!get_option('abptb_my_account_flushed')) { $this->register_endpoint(); flush_rewrite_rules(false); update_option('abptb_my_account_flushed', 1); } } public function render_bookings(): void { $user_id = get_current_user_id(); ?>
' . esc_html__('You have no transport bookings yet.', 'abp-transport-booking') . '
'; } ?># -
: 0 ? wp_kses_post(wc_price($total)) : esc_html__('FREE', 'abp-transport-booking'); ?>