How to load custom plugin functions/classes for use in the header?
-
Hey guys, im currently building a simple user profile plugin that will allow me to have the base functions i need for editing and viewing a registered users profile within the front end of a WordPress site.
Im currently having a issuse getting my classes to be passed to WordPress in time to be used within the header.php template file.
I assume this is due to when WordPress loads the plugins? i have try’d using the add_action(‘init’, ‘pky_load’); which does load in the plugin but still does not seem to allow me to call the function class inside the header.php file.
Any ideas? Btw if anyone wants this plugin ill happyly hand it out, its not a simple plugin but it gives anyone with a little PHP/HTML know how the ability to simple intergrate a view/edit profile page to your site.
- The topic ‘How to load custom plugin functions/classes for use in the header?’ is closed to new replies.