• Hi i would like to know how can i customize the default message “You dont have permission to …”

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rcasolino

    (@rcasolino)

    I find the answer sorry ??

    add_filter('wppcp_content_restricted_default_message','wppcp_content_restricted_default_message',10,2);
    
    function wppcp_content_restricted_default_message($message,$params){
       return "Changed Message";
    }
    Plugin Author nimeshrmr

    (@nimeshrmr)

    Sorry about the delay. Glad to know that you found the answer. ??

    Hi
    Can you pls be more specific on how to change this. I removed the ‘change message’ and added mine but nothing happened. I even edited the message itself in the class file but still nothing changed . pls how exactly should it be done

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change default message’ is closed to new replies.