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.

Home Forums Lan

About: Lan

Sorry, I've not written a description yet. I'll get to it soon!


My Latest Replies (From Various Topics)

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Saturday Jun 2nd, 2012 at 12:12 am #15233
Lan
Username: bigrice

Thank you Cristian. I’ve read the thread you recommended, but it seems to be different from what I hope to do? as it sync with mailchimp during the registration.

I hope to understand is whether we can update mailchimp merge tags for “existing WP users” (not newly register ones) with my customized WP database fields.
which filter should I use?
add_filter(“ws_plugin__s2member_mailchimp_merge_array”, “my_filter”);
or
add_filter(“ws_plugin__s2member_mailchimp_update_existing”, “__return_true”

thanks for your help in advance

Posted: Saturday Mar 3rd, 2012 at 9:38 am #7165
Lan
Username: bigrice

here is the code i used

<?php
add_action('ws_plugin__s2member_after_register', 'my_action_hook_function');
 function my_action_hook_function($vars = array()) { echo "My Hook works."; print_r($vars); } ?>
Posted: Saturday Mar 3rd, 2012 at 9:35 am #7164
Lan
Username: bigrice

I’m new here too…trying to help a bit if i can….
Have you checked out the Custom Capabilities to achieve your goal? that might help?

Posted: Saturday Mar 3rd, 2012 at 9:28 am #7163
Lan
Username: bigrice

Wooo, Cris, thank you very much for helping reply my kindergarten level question… it works!!
However, I did not see the echo message “My Hook works.” after the registration.
How can I print the message out after the user registration?

Sorry for asking another stupid question….just to try to learn a few basics here…did not mean to ask you to code for me…..thank you very much in advance.

Posted: Wednesday Feb 29th, 2012 at 11:53 pm #6859
Lan
Username: bigrice

Oops, I put in that hook, however got an error message saying

Warning: Cannot modify header information – headers already sent by …/s2-hacks.php:2) in ../wp-login.php on line 349

How can I fix that error?
Thank you for your advice

Posted: Wednesday Feb 29th, 2012 at 10:25 pm #6845
Lan
Username: bigrice

Thank you very much, man!

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

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.