"true", 'show_button' => "true", 'button_text' => __("Register", 'almefy-me'), 'show_when_logged_in' => "false", 'redirect' => 'true', ], $attributes, 'almefy-register'); $show_when_logged_in = $attributes['show_when_logged_in'] == 'true'; $require_username = $attributes['require_username'] == 'true'; $show_button = $attributes['show_button'] == 'true'; $button_text = $attributes['button_text']; // TODO: show enrollment code on site // $redirect = $attributes['redirect'] == 'true'; if (!$show_when_logged_in && is_user_logged_in()) { return ''; } // RENDER ob_start(); ?>