public function __construct() { parent::__construct(); if (!is_user_logged_in()) { wp_redirect(wpsc_get_login_url()); exit; } $this->title = wpsc_get_customer_account_title(); }
function wpsc_customer_account_title() { echo wpsc_get_customer_account_title(); }