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.

xdecrypt in a plugin?

Home Forums Community Forum xdecrypt in a plugin?

Tagged: 

This topic contains 3 replies, has 2 voices. Last updated by  Bruce 3 years, 6 months ago.

Topic Author Topic
Posted: Wednesday Jul 10th, 2013 at 6:14 am #53205

Is there anyway to use s2member_xdecrypt() in a plugin I created please?

~Gary.

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Wednesday Jul 10th, 2013 at 9:51 am #53237
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

You’d just need to make sure the User has s2Member installed and that you’re loading the plugin with WordPress when you use it.

Posted: Wednesday Jul 10th, 2013 at 11:39 am #53239

I dont think that is working buddy. I am getting an undefined function error. The plugin is not reading any files from S2. Should it be in the normal WP plugin folder or the MU-plugin folder please? Unless it is something else.

Posted: Wednesday Jul 10th, 2013 at 3:38 pm #53244
Bruce
Username: Bruce
Staff Member

I dont think that is working buddy. I am getting an undefined function error. The plugin is not reading any files from S2. Should it be in the normal WP plugin folder or the MU-plugin folder please? Unless it is something else.

The function should be available anytime after ws_plugin__s2member_loaded. It sounds like you’re trying to use it as your plugin is being loaded, which won’t work. Hook onto the plugins_loaded hook. That should work.

See: http://codex.wordpress.org/Function_Reference/add_action

Viewing 3 replies - 1 through 3 (of 3 total)

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.