• I have searched everywhere. I would just like to add a Welcome message to a restricted content page with Welcome [First Name] but can’t find what shortcode to use that works. Please help

Viewing 1 replies (of 1 total)
  • Plugin Support yuriinalivaiko

    (@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

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.