Home › Forums › Back End › PHP functions in word press › Re: PHP functions in word press
February 28, 2010 at 12:13 am #71749
When you browse to a wordpress site it calls the root index.php which in turn requires and includes all the functionality that wordpress uses and then calls the index.php file in the active template.
I was just working in the template and I thought there might be another way I was able to access the WP functions. As I didn’t see any include() or require() bringing in function libraries. Until I looked beyond the template and to how the template index.php files was called.
Look in wp-includes/functions.php file – the get_header(), get_footer(), etc. functions all utilize include() (or require/require_once() – I can’t remember).
I think that file is general-template.php
Thanks for the reply.