Most Commonly Used WordPress Functions. The Ultimate Cheatsheet

WordPress Functions are the tools to build an amazing WordPress Site.

You can find an official list by category in the Codex and a complete alphabetical list in the WordPress Code Reference.

The following list is my personal selection of the most useful and frequently used PHP WordPress functions. It is based on my daily WordPress Development experience. The list is updated with each new version of WordPress (if needed).

Some useful remarks:

  • the meaning of the get_ prefix – There are pairs of functions whose names differ only by the get_ prefix. The function with get_ simply returns some value, while the function without get_ displays the value. Example: the_title()get_the_title()
  • the meaning of the _e suffix – There are pairs of functions whose names differ only in the ending _e (echo). The function with the _e suffix displays the value, while the other simply returns the value. Example: esc_html()esc_html_e()

Content management

Template functions

Conditional statements

Formatting functions

Utility functions




Manage users


Actions and Filters

WordPress REST API

General functions