There is the following do_action
else do_action( 'example', $this->nothing());
Where nothing() does exactly what it sounds like.
This logic is in a public function testFunction in a class called Test.
What I would like to do is hook into this function (I'm in a different plugin), and call a different function (looppages()) that is already in the same class as the above logic like this:
add_action( 'example', Test::looppages);
Can I do this?