ParseError thrown

syntax error, unexpected 'add_action' (T_STRING)