public function __construct() { if (is_user_logged_in()) { wp_redirect(wpsc_get_store_url()); exit; } parent::__construct(); //Set a cookie now to see if they are supported by the browser. setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); if (SITECOOKIEPATH != COOKIEPATH) { setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); } $this->title = wpsc_get_login_title(); }
function wpsc_login_title() { echo wpsc_get_login_title(); }