ActiveSubscriber.php 253 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php namespace ACA\WC\Export\UserSubscription; use ACP; class ActiveSubscriber extends ACP\Export\Model { public function get_value( $user_id ) { if ( wcs_user_has_subscription( $user_id, '', 'active' ) ) { return '1'; } return ''; } }