__( 'You are already logged in!', 'charitable' ), 'redirect' => false, 'login_link_text' => __( 'Signed up already? Login instead.', 'charitable' ), ); $args = shortcode_atts( $defaults, $atts, 'charitable_registration' ); ob_start(); if ( is_user_logged_in() ) { charitable_template( 'shortcodes/logged-in.php', $args ); return ob_get_clean(); } $args['form'] = new Charitable_Registration_Form( $args ); charitable_template( 'shortcodes/registration.php', $args ); return apply_filters( 'charitable_registration_shortcode', ob_get_clean() ); } } endif;