Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress The WordPress Codex How to Use the WordPress Codex The WordPress Codex For Theme Developers

Where exactly are the inherent WordPress Functions defined inside or outside the core of WordPress?

If we look at codex - Function_Reference webpage; we see that there are core functions listed for WordPress. The first two sentences say:

"The files of WordPress define many useful PHP functions. Some of the functions, known as Template Tags, are defined especially for use in WordPress Themes."

So my question is, where are these functions defined for the core and how does PHP recognize these functions in the first place. I tried looking everywhere but I could not find the answer.

Thanks in advance.

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi,

Technically all of those functions listed on that page are defined and or used within the WordPress core. If you download a copy of WordPress and use a text editor that lets you search through an entire folder of files you can try searching for a specific function you want to see how and where it's used in core.

You may also like this page here: https://make.wordpress.org/core/handbook/the-wordpress-codebase/

Hope that helps?!

Thanks Zac