I started to create my first plugin for wordpress with admin pages and user page using OOP. At the "plugins" folder I created a new for my plugin. I have "index.php", an "includes" folder with some object php and "admin" folder. At the "themes" folder I created a new page-* php for the users. My problem, that I can't use my objects at user side. In the admin pages everything is fine, I can call and get datas, but in the page-*.php the /* @var $datas Object[] */ is don't do the same, $datas is NULL. How to link my admin and theme pages? Thank for the help!
Thanks for Jamie-D, I can solve my problem. I can't reach the original object in admin side, but I created a same structure as in admin and call the same functions. With this I created a new variable for the object, which contain the same data as the original, because both use the same database.