This paper presents the analysis and the application of a current controller in an active power filter (APF) based on a PWM voltage-source electronic converter with three legs and four wires. The neutral wire is connected to the middle point of the DC-capacitor voltage. The controller proposed here is an extension of the one proposed for a three-wire shunt active power filter. The controller is a two-level nested controller. The outer-loop generates the reference current for the inner-loop. The latter, is a state-feedback current controller with integral action. The former consists of (i) a selective harmonic elimination technique and (ii) a DC-capacitor-voltage controller. This paper will focus on the neutral-wire current control and on the balance control of the DC-capacitor voltage. The performance of the control algorithm has been demonstrated using a test-rig with balanced and non-balanced non-linear loads.