For the part of the php code, how do I code a redirect to another URL address instead of landing the user into "die" page?
if ($custom_field != 'members') {
die('Sorry, this area is for registered members only.');
}
I would like to change the "die" part to the code that uses "send_to_url" variable, using below.
send_to_url('/member/login.php');
For example, this concept:
if ($custom_field != 'members') {
send_to_url('/member/login.php');
}
Thanks very much in advance.