array( 'href' => array(), ), ); $woo = defined( 'WOOCOMMERCE_VERSION' ); $wishlist = defined( 'YITH_WCWL' ); $account_arr = array( 'orders' => array( 'Orders', 'orders' ), 'downloads' => array( 'downloads', 'downloads' ), 'edit-address' => array( 'addresses', 'edit-address' ), 'edit-account' => array( 'Account details', 'edit-account' ), 'wishlist' => array( 'Wishlist', 'wishlist' ), ); /** * Filters the items of account dashboard. * * @since 1.0 */ $account_arr = apply_filters( 'alpha_account_dashboard_items', $account_arr ); if ( ! isset( $account_arr['vendor_dashboard'] ) ) { // if vendor plugin is not activated yet $account_arr['customer-logout'] = array( 'Logout', 'customer-logout' ); } ?>

Log out)', 'alpus' ), $allowed_html ), '' . esc_html( $current_user->display_name ) . '', esc_url( wc_logout_url() ) ); ?>

recent orders, manage your billing address, and edit your password and account details.', 'alpus' ); if ( wc_shipping_enabled() ) { /* translators: 1: Orders URL 2: Addresses URL 3: Account URL. */ $dashboard_desc = __( 'From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.', 'alpus' ); } printf( wp_kses( $dashboard_desc, $allowed_html ), esc_url( wc_get_endpoint_url( 'orders' ) ), esc_url( wc_get_endpoint_url( 'edit-address' ) ), esc_url( wc_get_endpoint_url( 'edit-account' ) ) ); ?>

$value ) : ?>
get_wishlist_url(); } else { $url = get_home_url(); } } elseif ( 'vendor_dashboard' == $key ) { $url = $value[1]; } else { $url = wc_get_account_endpoint_url( $value[1] ); } ?>