Uncategorized (category)

_doing_it_wrong()

Mark something as "done incorrectly". For example, the function is called incorrectly, the parameter is specified incorrectly, etc.

cache_javascript_headers()

Sets headers for the Javascript file and caches it for 10 days.

do_robots()

Displays the robots.txt file content. Sets appropriate HTTP headers. Used for creation of dynamic robots.txt file.

download_url()

Uploads a file (URL) to a temporary PHP directory. Works based on the WordPress HTTP API.

get_privacy_policy_url()

Returns the URL of the privacy policy page.

maybe_convert_table_to_utf8mb4()

Converts table fields to the encoding utf8mb4_unicode_ci, if there are fields in the table with encoding utf8_* or utf8mb4_*.

nocache_headers()

Sets headers that prevent caching in all browsers.

show_admin_bar()

Allows you to disable the "Toolbar" (Admin Bar). Technically, the function enables/disables "Admin Bar" for the front-end. You cannot turn it off in Admin-panel.

wp_check_browser_version()

Checks if the user's browser needs to be updated.

wp_die()

Kills WordPress execution and displays the specified HTML message.

wp_editor()

Displays the text editor - Quicktags (textarea with buttons) and TinyMCE (visual editor). Can be used in templates, on pages like: post, static page, etc.

wp_font_dir()

Gets the path and URL of the current fonts folder.

wp_get_raw_referer()

Gets the referer (referer) URL. A wrapper for $_SERVER['HTTP_REFERER'].

wp_get_referer()

Gets the referer link (referer URL) only if it is an internal URL - the URL of the current site.

wp_install_defaults()

Creates default content for a newly installed site: basic categories, posts, pages, etc.

wp_magic_quotes()

Changes global variables $_GET, $_POST, $_REQUEST, $_COOKIE, $_SERVER - adds magic quotes to their values.

wp_mail()

Send mail, similar to PHP's mail

wp_oembed_get()

Embeds the object by specified URL. Tries to get the HTML code from the passed URL by using supported WordPress oEmbed providers.

wp_redirect()

Redirects to the specified URL, you can specify the redirect status (301, 302...).

wp_safe_redirect()

Performs a safe redirect, using wp_redirect(). Before redirections check whether the host is in whitelist (in list of allowed hosts).

wp_star_rating()

Outputs HTML rating (stars) for the specified rating.

wp_timezone_choice()

Gives a nicely-formatted list of timezone strings in <option> format for use in <select>.

wp_validate_redirect()

Checks the specified URL for the possibility of using it for redirection.