[wp-hackers] wordpress function naming convention

Haluk Karamete halukkaramete at gmail.com
Thu Feb 21 21:56:29 UTC 2013


Could someone guide as to what the convention is when we see a
wordpress function which starts with one of these

the_X()

get_the_X()

wp_the_X()

wp_get_the_X()

and very rarely some core functions start with _.

as to the template tags, the convention is easy to understand, the_X
outputs the X inline, whereas get_the_X returns the value.

But for all the rest, not too sure.


More information about the wp-hackers mailing list