Relocate add_filter call to within constructor method

The position of the add_filter call produces PHP Notices on the Plugins page.