Practicing & Testing Child Theme's Functions.php in custom php files?
-
Hi Guys,
I’m trying to do something relatively simple. I created a child theme and a corresponding functions.php file in the child theme’s directory.
How should I go about properly calling the functions in the functions.php file from my custom php pages. For instance, I’m working with the wpdb class right now, and would like to have my functions.php file return a list of users to my custom.php page to print out. I’m not sure what hooks I can use. I tried adding do_action to the custom.php file, but it didn’t work. Do I need to load a particular class to make the action hooks available to my custom.php file which is stored in the same folder as my functions.php file?
If someone could show me a quick and simple function that I could put in my functions.php file, and then reference it in a simple custom.php I think that would be very helpful. Thanks!!!
- The topic ‘Practicing & Testing Child Theme's Functions.php in custom php files?’ is closed to new replies.