Calling custom plugin class methods from a template

You can just instantiate an object from class CustomPlugin like $obj = new CustomPlugin('id','name','desc'); in CustomPluginTemplate.php

and call any method from the class within the CustomPluginTemplate.php file as $obj->query_vars();

Before instantiating make sure you class is included.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)