Hello @aswingiri, thanks for the snippet and prompt response.
The snippet didn’t work as it expected, I may have done something wrong. I restricted this page to logged in users, https://acilci.net/ikincibasamak/
and added a login/register form shortcode to the restricted access message. But it does not recognize the shortcode, shows it as a text and redirects to 404 page.
@drhaldun Can you please tell me where did you add the code, this is a tested solution and couple of other users have used this snippet. So, it should be working. I tried to navigate to the url you provided but it redirects to private-area/welcome/. Do you have any redirection setup for this page?
I pasted the code into Code Snippets and activated it: https://imgur.com/7Acnutc
This is the text area of UM I am trying to embed the shortcode: https://imgur.com/HZHB4PL
But before the redirect, I have time to see that the shortcode is not working: https://imgur.com/g72FgBD
The redirect is injected by the code snippet you have provided, I guess the following part is responsible for it: