WordPress at a glance
Главная Functions Other Functions Uncategorized

Category: Uncategorized 18

cache_javascript_headers()

Set the headers for caching for 10 days with JavaScript content type.

do_robots()

Display the robots.txt file content.

download_url()

Downloads a URL to a local temporary file using the WordPress HTTP Class. Please note, That the calling function must unlink() the file.

is_blog_installed()

Test whether WordPress is already installed.

is_wp_error()

Check whether variable is a WordPress Error.

maybe_convert_table_to_utf8mb4()

If a table only contains utf8 or utf8mb4 columns, convert it to utf8mb4.

nocache_headers()

Set the headers to prevent caching for the different browsers.

show_admin_bar()

Sets the display status of the admin bar.

wp_check_browser_version()

Check if the user needs a browser update

wp_die()

Kill WordPress execution and display HTML message with error message.

wp_editor()

Renders an editor. Using this function is the proper way to output all needed components for both TinyMCE and Quicktags. _WP_Editors should not be used directly. See https://core.trac.wordpress.org/ticket/17144.

wp_magic_quotes()

Add magic quotes to $_GET, $_POST, $_COOKIE, and $_SERVER.

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 another page.

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()

Output a HTML element with a star rating for a given rating.

wp_timezone_choice()

Gives a nicely-formatted list of timezone strings.