Simple Membership Plugin › Forums › Simple Membership Plugin › After Login Redirection page url link – include in loggedin.php
- This topic has 4 replies, 2 voices, and was last updated 11 months, 2 weeks ago by
BillC.
-
AuthorPosts
-
October 18, 2025 at 8:27 pm #31659
BillC
ParticipantHi,
I have configured the After Login Redirection with a page url in Membership Levels.
This works fine and upon login the member is successfully sent to this page.
This is a unique page for this Membership level only so its link url is not available anywhere else on the site.
A small problem occurs if the logged in Member clicks away from this page. Of course they can use the browser’s back button to return to this page but this is not ideal if they have browsed through multiple pages then wish to return to this unique page.
Is it possible to include a link to this page in the loggedin.php file?
Logging out and logging in again will of course allow them to re-access the page but it would be so useful to be able to include its link in the loggedin.php details.
Thanks if you can advise if this is possible.
BillOctober 19, 2025 at 1:33 am #31661The Assurer
ModeratorHave you thought of placing some code at top each page, such that if they are a member of that particular level, the desired link will be shown?
October 19, 2025 at 11:52 am #31664BillC
ParticipantThanks for getting back to me, I do appreciate it.
That would work but the link must only be visible to members of that particular level who have logged in.
I was wondering if there is a simple way to “get” the page url entered in the “After Login Redirection Page” field in the WordPress dashboard, and then display it at the top of each page – but only when the member has logged in? The displayed link would then disappear when the member logs out.
October 19, 2025 at 11:47 pm #31667The Assurer
ModeratorPlease checkout this documentation…
https://simple-membership-plugin.com/apply-partial-section-protection/#partial-protection-for-specific-membership-levelsOctober 21, 2025 at 11:26 am #31688BillC
ParticipantThanks for this but it doesn’t work for me I’m afraid as it only works nicely if there’s just one single Member Level. This solution would mean there being too many protected section links on a page (there’s a lot of membership levels).
Ideally I just need a hook to the “After Login Redirection” field value entered in the Member Level area in the WordPress dashboard.
I was hoping it would be a simple solution which could be posted here but appreciate it may be beyond the support scope for the free plugin.
It would be great if you can help but if not I’ll look for a developer.
Thanks again for your assistance.
Bill -
AuthorPosts
- You must be logged in to reply to this topic.