MemberPress: ActiveCampaign – Add Custom Field to ActiveCampaign Subscriber Data in MemberPress
add_filter( ‘mepr-activecampaign-add-subscriber-args’, function( $args, $user ) { // Check if the username is set in the POST request and sanitize it $username = isset( $_POST[‘user_login’] ) ? sanitize_text_field( $_POST[‘user_login’] ) : ”; // Add the username to the custom field…Continue reading