I have a custom registration page and prefer to use it rather than the S2member's page.
What's necessary to specify use of an alternative registration page?
PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
dwdutch wrote:I have a custom registration page and prefer to use it rather than the S2member's page. What's necessary to specify use of an alternative registration page?
<?php
if(strpos($_SERVER["REQUEST_URI"], "wp-login.php") !== false && $_GET["action"] === "register"){
header("Location: http://www.example.com/my-registration-page/"); exit();
}
?>
Warning: Cannot modify header information - headers already sent by (output started at /hermes/.../mac/wp-content/mu-plugins/s2-hacks.php:1) in /hermes/.../mac/wp-content/mu-plugins/s2-hacks.php on line 3
add_action('init','tmm_redirect');
function tmm_redirect() {
global $pagenow;
if( 'wp-login.php' == $pagenow && $_GET["action"] === "register") {
wp_redirect('http://www.example.com/my-registration-page/');
exit();
}
}
<?php
if (strpos ($_SERVER["REQUEST_URI"], "wp-login.php") !== false && $_GET["action"] === "register")
{
header ("Location: http://www.example.com/my-registration-page/"); exit ();
}
?>
Also, for the registration fields what are the name="" info for each of the required info as well as custom fields?
ws_plugin__s2member_custom_reg_field_first_name
ws_plugin__s2member_custom_reg_field_last_name
ws_plugin__s2member_custom_reg_field_{your custom registration field id}
( ex: ws_plugin__s2member_custom_reg_field_country_code )
Users browsing this forum: Google [Bot] and 2 guests