# charitable/1.6.6/templates/shortcodes/logged-in.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.6.6. 24 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.6.6/code/templates/shortcodes/logged-in.php
- Raw: https://pluginprobe.com/plugins/charitable/1.6.6/raw/templates/shortcodes/logged-in.php
- Modified: 2018-09-17T12:08:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.6.6/code/templates/shortcodes/logged-in.php#L10-L20`.

```php
<?php
/**
 * Displays the logged in message.
 *
 * Override this template by copying it to yourtheme/charitable/shortcodes/logged-in.php
 *
 * @author  Studio 164a
 * @package Charitable/Templates/Account
 * @since   1.0.0
 * @version 1.5.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) { exit; }

$message = isset( $view_args['logged_in_message'] )
	? $view_args['logged_in_message']
	: __( 'You are already logged in!', 'charitable' );

echo wpautop( $message );

?>
<a href="<?php echo wp_logout_url( charitable_get_current_url() ) ?>"><?php _e( 'Logout.', 'charitable' ) ?></a>

```
