/* USING S2 NOTIFICATIONS API * ADD SUBSCRIPTION DETAILS FOR USERS WITH 100% DISCOUNTS * using Signup Notification URL https://wmhca.org/?s2_signup_notification=yes&user_email=%%payer_email%%&coupon=%%coupon_code%% */ add_action( ‘init’, ‘s2_signup_notification’ ) ; function s2_signup_notification() { if ( ! empty( $_GET[‘s2_signup_notification’] ) && $_GET[‘s2_signup_notification’] === ‘yes’ ) { if( ! empty( $_GET[‘user_email’] ) && ! empty(
Oddly, S2Member does not by default directly expose Subscription beginning and end dates, although it does expose a user profile field for setting the latter if desired. Site operators will like to be able to view that data, whether in profile pages or as output in custom lists and tables.
…because the S2Member generation of field html includes inline “!important” codes that make them impossible to style via CSS, and because the checkbox output includes non-breaking spaces that also impede re-styling.