Make custom field Expiry = EOT Date
-
Have imported some 17000 records and placed the members expiry date from that system into a custom field called Expiry. I need to make the EOT date in s2member = Expiry (custom field).
Found the following on the forum, which I think is a step in the right direction to find the existing EOT:
“global $wpdb;
$query = “SELECTuser_id
,meta_value
FROMwp_usermeta
WHEREmeta_key
= ‘wp_s2member_auto_eot_time’ ANDmeta_value
!= ””;
foreach($wpdb->get_results($query) as $result)
if (wp_s2member_auto_eot_time >= “31 July 2014” {
[do this action]
}
”
- The topic ‘Make custom field Expiry = EOT Date’ is closed to new replies.