How To Edit Shortcode Error Messages
-
I would like to change one of the default error message in the shortcode
[namaste-enroll course_id=xx] The default error message to the visitor reads: ” You need to be logged in to enroll in this course “I would like to change it to read” You need to be REGISTERED to enroll in this course” (With the REGISTER link to a special registration page URL. The dynamic variable in the .pot file is %s I would like to hard code that. If I can’t do that I would want to unlink the word REGISTER in the worst case.
Q. Where can I find the code that contains the default english error codes so I can alter them. I don’t want to create a .mo file but if that’s the only way please let me know the instruction. I have POEDIT and know how to compile .mo file but I was hoping I could find an easier way to edit the DEFAULT language. THANK YOU
The topic ‘How To Edit Shortcode Error Messages’ is closed to new replies.