ParseError thrown

syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)