The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP functions in word press Re: PHP functions in word press


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.

"john010117" wrote:
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.