'yes', 'show_profile' => 'yes', 'show_wishlist' => 'yes', 'bookings_limit' => '10', ]); } /** * Render the my account shortcode content (React mount only; same app as /account URL). */ protected function renderContent(array $atts): string { shortcode_atts($this->default_attributes, $atts, $this->tag); if (!is_user_logged_in()) { return $this->renderLoginForm(); } $yatra_account_react_embed = true; ob_start(); require YATRA_PLUGIN_PATH . 'templates/partials/account-react-root.php'; return (string) ob_get_clean(); } /** * Render login form for non-logged in users */ private function renderLoginForm(): string { $login_url = wp_login_url(get_permalink()); $register_url = wp_registration_url(); ob_start(); ?>