Error thrown

Call to a member function add_filter() on array