New and updated in 2.5.0
-
functionget_the_terms()
Retrieves the terms of the taxonomy that are attached to the post.
-
functionswitch_theme()
Switches the theme.
-
function_n_noop()
Registers plural strings in POT file, but does not translate them.
-
functionwp_sprintf()
WordPress’ implementation of PHP sprintf() with filters.
-
hookwp_sprintf
Filters a fragment from the pattern passed to wp_sprintf().
-
functionwp_sprintf_l()
Localizes list items before the rest of the content.
-
hookwp_sprintf_l
Filters the translated delimiters used by wp_sprintf_l().
-
functionwp_html_excerpt()
Safely extracts not more than the first $count characters from HTML string.
-
functiontag_escape()
Escapes an HTML tag name.
-
functionlike_escape()
Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.
-
functionwp_htmledit_pre()
Formats text for the HTML editor.
-
hookhtmledit_pre
Filters the text before it is formatted for the HTML editor.
-
functionwp_set_password()
Updates the user’s password with a new hashed one.
-
functionget_avatar()
Retrieves the avatar “ tag for a user, email address, MD5 hash, comment, or post.
-
hookget_avatar
Filters the HTML for a user’s avatar.
-
functionwp_hash_password()
Creates a hash of a plain text password.
-
functionwp_check_password()
Checks a plaintext password against a hashed password.
-
hookcheck_password
Filters whether the plaintext password matches the encrypted password.
-
functionwp_generate_password()
Generates a random password drawn from the defined set of characters.
-
functionwp_nonce_tick()
Returns the time-dependent variable for nonce creation.
-
hooknonce_life
Filters the lifespan of nonces in seconds.
-
functionwp_salt()
Returns a salt to add to hashes.
-
hooksalt
Filters the WordPress salt.
-
hookauth_cookie
Filters the authentication cookie.
-
functionwp_set_auth_cookie()
Sets the authentication cookies based on user ID.
-
hookset_auth_cookie
Fires immediately before the authentication cookie is set.
-
functionwp_clear_auth_cookie()
Removes all of the cookies associated with authentication.
-
functioncheck_admin_referer()
Ensures intent by verifying that a user was referred from another admin page with the correct security nonce.
-
functionwp_generate_auth_cookie()
Generates authentication cookie contents.
-
functionwp_authenticate()
Authenticates a user, confirming the login credentials are valid.