Section 145(1) of the Social Services and Well-being (Wales) Act 2014 (anaw 4) (“the 2014 Act”) enables the Welsh Ministers to issue codes on the exercise of social services functions. Section 145(3) of the 2014 Act requires local authorities, when exercising social services functions, to act in accordance with any relevant requirements contained in a code and to have regard to any relevant guidelines contained in the code.