Plugin Support
Yurii
(@yuriinalivaiko)
Hello @designdna
Are you going to add this into the “Custom restricted access message” setting to the restricted page? See this example: https://prnt.sc/MCsUTKORmmDb
You can use a code snippet to apply UM placeholders (basically designed for emails) to this message. Add this code to the functions.php file in the theme.
/* Apply common placeholders to the Custom restricted access message */
add_filter( 'um_restricted_post_content', function( $content, $id, $original_post_content ) {
return um_convert_tags( $content, array(), false );
}, 10, 3 );
Once the code is added you can use {first_name} and other placeholders in this message.
Regards
Hi @designdna
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards
Sorry – I didn’t see that this was replied to. Please don’t close. I wish to embed the {first_name} placeholder in the header text of a restricted page Not in the Custom restricted access message. So once logged in they access the members only page and there is a Welcome {first_name} (with their name) on the top of the page
-
This reply was modified 1 year, 6 months ago by
DesignDNA.