{# # My Account Dashboard (Bootstrap 5 Override) # # Shows the welcome screen on the account dashboard. # # Expected context: # current_user - WP_User object # # WooCommerce PHP equivalent: myaccount/dashboard.php # # @package WcBootstrap # @since 0.1.0 #}
{{ __('Hello %1$s (not %1$s? Log out)')|format( '' ~ current_user.display_name|esc_html ~ '', wc_logout_url()|esc_url )|wp_kses_post }}
{% if wc_shipping_enabled() %} {{ __('From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.')|format( wc_get_endpoint_url('orders')|esc_url, wc_get_endpoint_url('edit-address')|esc_url, wc_get_endpoint_url('edit-account')|esc_url )|wp_kses_post }} {% else %} {{ __('From your account dashboard you can view your recent orders, manage your billing address, and edit your password and account details.')|format( wc_get_endpoint_url('orders')|esc_url, wc_get_endpoint_url('edit-address')|esc_url, wc_get_endpoint_url('edit-account')|esc_url )|wp_kses_post }} {% endif %}
{{ do_action('woocommerce_account_dashboard') }} {{ do_action('woocommerce_before_my_account') }} {{ do_action('woocommerce_after_my_account') }}