• Resolved norimbog

    (@norimbog)


    Hi
    I added the code to functions.php but the default message is not changed ??
    I still have:

    You don’t have permission to view the content

    I used:

    add_filter(‘wppcp_content_restricted_default_message’,’wppcp_content_restricted_default_message’,10,2);
    function wppcp_content_restricted_default_message($message,$params){
    return “Custom Message”;
    }

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nimeshrmr

    (@nimeshrmr)

    Hi

    Please send us a support request with login details of your site at https://www.wpexpertdeveloper.com/support/

    Thanks
    Nimesh

    Plugin Author nimeshrmr

    (@nimeshrmr)

    Marking this as resolved due to lack of responses

    Thread Starter norimbog

    (@norimbog)

    yes it was resolve d by filter for posts in functions.php:

    add_filter('wppcp_content_restricted_default_message','wppcp_content_restricted_default_message',10,2);
    function wppcp_content_restricted_default_message($message,$params){
    return "Tylko dla zalogowanych";
    }
    add_filter('wppcp_archive_page_restrict_message','wppcp_archive_page_restrict_message',10,2);
    function wppcp_archive_page_restrict_message($message,$params){
    return "Tylko dla zalogowanych";
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change default message of protected data’ is closed to new replies.