WPDev.one
Core PHP Functions

Functions Reference

4125+ PHP functions available in the WordPress global namespace. Complete documentation with parameters, return values, and usage examples.

Showing 1851 to 1900 of 4125 functions (Page 38 of 83)
sanitize_mime_type()

Sanitizes a mime type

$mime_type
sanitize_trackback_urls()

Sanitizes space or carriage return separated URLs that are used to send trackbacks.

$to_ping
wp_slash()

Adds slashes to a string or recursively adds slashes to strings within an array.

$value
wp_unslash()

Removes slashes from a string or recursively removes slashes from strings within an array.

$value
get_url_in_content()

Extracts and returns the first URL from passed content.

$content
wp_spaces_regexp()

Returns the regexp for common whitespace characters.

wp_enqueue_emoji_styles()

Enqueues the important emoji-related styles.

print_emoji_detection_script()

Prints the inline Emoji detection script if it is not already printed.

_print_emoji_detection_script()

Prints inline Emoji detection script.

wp_encode_emoji()

Converts emoji characters to their equivalent HTML entity.

$content
wp_staticize_emoji()

Converts emoji to a static img element.

$text
wp_staticize_emoji_for_email()

Converts emoji in emails into static images.

$mail
_wp_emoji_list()

Returns arrays of emoji data.

$type
url_shorten()

Shortens a URL, to be used as link text.

$url $length
sanitize_hex_color()

Sanitizes a hex color.

$color
sanitize_hex_color_no_hash()

Sanitizes a hex color without a hash. Use sanitize_hex_color() when possible.

$color
maybe_hash_hex_color()

Ensures that any hex color is properly hashed.

$color
get_sitestats()

Gets the network's site and user counts.

get_active_blog_for_user()

Gets one of a user's active blogs.

$user_id
get_blog_count()

Gets the number of active sites on the installation.

$network_id
get_blog_post()

Gets a blog post from any site on the network.

$blog_id $post_id
add_user_to_blog()

Adds a user to a blog, along with specifying the user's role.

$blog_id $user_id $role
remove_user_from_blog()

Removes a user from a blog.

$user_id $blog_id $reassign
get_blog_permalink()

Gets the permalink for a post on another blog.

$blog_id $post_id
get_blog_id_from_url()

Gets a blog's numeric ID from its URL.

$domain $path
is_email_address_unsafe()

Checks an email address against a list of banned domains.

$user_email
wpmu_validate_user_signup()

Sanitizes and validates data required for a user sign-up.

$user_name $user_email
wpmu_validate_blog_signup()

Processes new site registrations.

$blogname $blog_title $user
wpmu_signup_blog()

Records site signup information for future activation.

$domain $path $title +3 more
wpmu_signup_user()

Records user signup information for future activation.

$user $user_email $meta
wpmu_signup_blog_notification()

Sends a confirmation request email to a user when they sign up for a new site. The new site will not become active

$domain $path $title +4 more
wpmu_signup_user_notification()

Sends a confirmation request email to a user when they sign up for a new user account (without signing up for a site

$user_login $user_email $key +1 more
wpmu_activate_signup()

Activates a signup.

$key
wp_delete_signup_on_user_delete()

Deletes an associated signup entry when a user is deleted from the database.

$id $reassign $user
wpmu_create_user()

Creates a user.

$user_name $password $email
wpmu_create_blog()

Creates a site.

$domain $path $title +3 more
newblog_notify_siteadmin()

Notifies the network admin that a new site has been activated.

$blog_id $deprecated
newuser_notify_siteadmin()

Notifies the network admin that a new user has been activated.

$user_id
domain_exists()

Checks whether a site name is already taken.

$domain $path $network_id
wpmu_welcome_notification()

Notifies the site administrator that their site activation was successful.

$blog_id $user_id $password +2 more
wpmu_new_site_admin_notification()

Notifies the Multisite network administrator that a new site was created.

$site_id $user_id
wpmu_welcome_user_notification()

Notifies a user that their account activation has been successful.

$user_id $password $meta
get_current_site()

Gets the current network.

get_most_recent_post_of_user()

Gets a user's most recent post.

$user_id
check_upload_mimes()

Checks an array of MIME types against a list of allowed types.

$mimes
update_posts_count()

Updates a blog's post count.

$deprecated
wpmu_log_new_registrations()

Logs the user email, IP, and registration date of a new site.

$blog_id $user_id
redirect_this_site()

Ensures that the current site's domain is listed in the allowed redirect host list.

$deprecated
upload_is_file_too_big()

Checks whether an upload is too big.

$upload
signup_nonce_fields()

Adds a nonce field to the signup page.