PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.2.7
Yatra – Travel Booking & Tour Operator Software v3.0.2.7
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / templates / account-page.php

account-page.php in Yatra – Travel Booking & Tour Operator Software 3.0.2.7, at templates/account-page.php

40 lines 898 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Account Page Template
4 * Template for rendering the customer account page
5 */
6
7 // Prevent direct access
8 if (!defined('ABSPATH')) {
9 exit;
10 }
11
12 // Get current user
13 $current_user = wp_get_current_user();
14
15 // If user is not logged in, redirect to login
16 if (!$current_user->ID) {
17 $login_url = home_url('/login');
18 wp_redirect($login_url);
19 exit;
20 }
21
22 ?>
23 <!DOCTYPE html>
24 <html <?php language_attributes(); ?>>
25 <head>
26 <meta charset="<?php bloginfo('charset'); ?>">
27 <meta name="viewport" content="width=device-width, initial-scale=1">
28 <title><?php echo esc_html(get_bloginfo('name')) . ' - ' . __('My Account', 'yatra'); ?></title>
29 <?php wp_head(); ?>
30 </head>
31 <body <?php body_class(); ?>>
32 <?php
33 $yatra_account_react_embed = false;
34 require YATRA_PLUGIN_PATH . 'templates/partials/account-react-root.php';
35 ?>
36 <?php wp_footer(); ?>
37 </body>
38 </html>
39
40