• following the topic : https://wordpress.org/support/topic/link-redirection-4

    I find a code that works but is it possible to have a shortcut, I have a lot of line with 400 member.
    it is necessary that ‘echo’, reference link after connection.

    <?php
    $member_id = SwpmMemberUtils::get_logged_in_members_id();
    if ($member_id == "1"){
        echo "To find your private page, voici le lien : <a href=\"http://pagemembre1.com/\">Ma Page Privé</a>";
    }
    
    if ($member_id == "2"){
        echo "To find your private page, voici le lien  : <a href=\"http://Lien2.com/\">Ma Page Privé</a>";
    }
    
    if ($member_id == "3"){
        echo "To find your private page, voici le lien  : <a href=\"http://Lien3.com/\">Ma Page Privé</a>";
    }
    if ($member_id == "400"){
        echo "Pour retrouver ma page privé, voici le lien 5 : <a href=\"http://Lien400.com/\">Ma Page Privé</a>";
    }
    ?>

    thx for new

    https://wordpress.org/plugins/simple-membership/

Viewing 1 replies (of 1 total)
  • Plugin Author wp.insider

    (@wpinsider-1)

    This is your custom code so you should create a function with this code. You can even create a shortcode with this code. Then you will be able to use that function or shortcode where you want.

Viewing 1 replies (of 1 total)

The topic ‘link redirection Page code’ is closed to new replies.