Probably, the best place to start would be the WordPress function reference landing page, so here it is.
Following, are a few quick references to some of my more commonly used (and mis-remembered) functions.
Directory uri retrieval
- get_template_directory_uri will always refer to the parent theme folder for assets.
- get_stylesheet_directory_uri will refer to the “current” theme folder for assets. If the theme is a child theme, it will refer to that.
- Neither contain a trailing slash.

Recent Comments