latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Javascripts equivalent of API constants.

Home Forums Community Forum Javascripts equivalent of API constants.

This topic contains 0 replies, has 1 voice. Last updated by  Ashwin Singh 3 years, 1 month ago.

Topic Author Topic
Posted: Friday Dec 6th, 2013 at 7:52 am #61716

Javascripts equivalent of API constants.

Hello,I am trying to use the S2member API constants in my js file to fetch the details of logged in user.
I found the following code in the plugin documentation file ,to add constants in js:

document.write(S2MEMBER_CURRENT_USER_DISPLAY_NAME);

However,i get an error as

Uncaught ReferenceError: S2MEMBER_CURRENT_USER_DISPLAY_NAME  is not defined.

I have tried to find the solution over the forum but couldn’t find any.

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.