In wordpress: index.php
$test = new Test();
<?php get_template_part( 'main' ); ?>
For a reason I don't understand, I have to re-include and re-instantiate Test() in main.php.
Shouldn't the class be available everywhere?
What does your class or function do? That could be the reason.
This topic is now archived. It is frozen and cannot be changed in any way.