I can confirm this code works when placed inside this file:
/wp-content/mu-plugins/s2-hacks.php
- Code: Select all
<?php
if (strpos ($_SERVER["REQUEST_URI"], "wp-login.php") !== false && $_GET["action"] === "register")
{
header ("Location: http://www.example.com/my-registration-page/"); exit ();
}
?>
* Please make sure there are no spaces/tabs/line breaks before or after
<?php ?>.
Also, please make sure you upload all PHP files in ASCII mode with your FTP client. I recommend FileZilla.
Also, for the registration fields what are the name="" info for each of the required info as well as custom fields?
- Code: Select all
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 )