????
Current Path : /home/darkwebsol/rensencorp.com/wp-content/themes/rashy/woocommerce/myaccount/ |
Current File : /home/darkwebsol/rensencorp.com/wp-content/themes/rashy/woocommerce/myaccount/my-account.php |
<?php /** * My Account page * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/my-account.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 3.5.0 */ defined( 'ABSPATH' ) || exit; /** * My Account navigation. * * @since 2.6.0 */ $title = esc_html__('My account','rashy'); foreach ( wc_get_account_menu_items() as $endpoint => $label ) { global $wp; // Set current item class. $current = isset( $wp->query_vars[ $endpoint ] ); if ( 'dashboard' === $endpoint && ( isset( $wp->query_vars['page'] ) || empty( $wp->query_vars ) ) ) { $current = true; // Dashboard is not an endpoint, so needs a custom check. } elseif ( 'orders' === $endpoint && isset( $wp->query_vars['view-order'] ) ) { $current = true; // When looking at individual order, highlight Orders list item (to signify where in the menu the user currently is). } elseif ( 'payment-methods' === $endpoint && isset( $wp->query_vars['add-payment-method'] ) ) { $current = true; } if ( $current ) { $title = $label; break; } } echo '<h3 class="title-account_navigation">'.$title.'</h3>'; do_action( 'woocommerce_account_navigation' ); ?> <div class="woocommerce-MyAccount-content"> <?php /** * My Account content. * * @since 2.6.0 */ do_action( 'woocommerce_account_content' ); ?> </div>