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 1001 to 1050 of 4125 functions (Page 21 of 83)
force_ssl_admin()

Determines whether to force SSL used for the Administration Screens.

$force
wp_guess_url()

Guesses the URL for the site.

wp_suspend_cache_addition()

Temporarily suspends cache additions.

$suspend
wp_suspend_cache_invalidation()

Suspends cache invalidation.

$suspend
is_main_site()

Determines whether a site is the main site of the current network.

$site_id $network_id
get_main_site_id()

Gets the main site ID.

$network_id
is_main_network()

Determines whether a network is the main network of the Multisite installation.

$network_id
get_main_network_id()

Gets the main network ID.

is_site_meta_supported()

Determines whether site meta is enabled.

wp_timezone_override_offset()

Modifies gmt_offset for smart timezone handling.

_wp_timezone_choice_usort_callback()

Sort-helper for timezones.

$a $b
wp_timezone_choice()

Gives a nicely-formatted list of timezone strings.

$selected_zone $locale
_cleanup_header_comment()

Strips close comment and close php tags from file headers used by WP.

$str
wp_scheduled_delete()

Permanently deletes comments or posts of any type that have held a status

get_file_data()

Retrieves metadata from a file.

$file $default_headers $context
__return_true()

Returns true.

__return_false()

Returns false.

__return_zero()

Returns 0.

__return_empty_array()

Returns an empty array.

__return_null()

Returns null.

__return_empty_string()

Returns an empty string.

send_nosniff_header()

Sends a HTTP header to disable content type sniffing in browsers which support it.

_wp_mysql_week()

Returns a MySQL expression for selecting the week number based on the start_of_week option.

$column
wp_find_hierarchy_loop()

Finds hierarchy loops using a callback function that maps object IDs to parent IDs.

$callback $start $start_parent +1 more
wp_find_hierarchy_loop_tortoise_hare()

Uses the "The Tortoise and the Hare" algorithm to detect loops.

$callback $start $override +2 more
send_frame_options_header()

Sends a HTTP header to limit rendering of pages to same origin iframes.

wp_admin_headers()

Sends a referrer policy header so referrers are not sent externally from administration screens.

wp_allowed_protocols()

Retrieves a list of protocols to allow in HTML attributes.

wp_debug_backtrace_summary()

Returns a comma-separated string or array of functions that have been called to get

$ignore_class $skip_frames $pretty
_get_non_cached_ids()

Retrieves IDs that are not already present in the cache.

$object_ids $cache_group
_validate_cache_id()

Checks whether the given cache ID is either an integer or an integer-like string.

$object_id
_device_can_upload()

Tests if the current device has the capability to upload files.

wp_is_stream()

Tests if a given path is a stream URL

$path
wp_checkdate()

Tests if the supplied date is valid for the Gregorian calendar.

$month $day $year +1 more
wp_auth_check_load()

Loads the auth check for monitoring whether the user is still logged in.

wp_auth_check_html()

Outputs the HTML that shows the wp-login dialog when the user is no longer logged in.

wp_auth_check()

Checks whether a user is still logged in, for the heartbeat.

$response
get_tag_regex()

Returns RegEx body to liberally match an opening HTML tag.

$tag
is_utf8_charset()

Indicates if a given slug for a character set represents the UTF-8

$blog_charset
_canonical_charset()

Retrieves a canonical form of the provided charset appropriate for passing to PHP

$charset
mbstring_binary_safe_encoding()

Sets the mbstring internal encoding to a binary safe encoding when func_overload

$reset
reset_mbstring_encoding()

Resets the mbstring internal encoding to a users previously set encoding.

wp_validate_boolean()

Filters/validates a variable as a boolean.

$value
wp_delete_file()

Deletes a file.

$file
wp_delete_file_from_directory()

Deletes a file if its path is within the given directory.

$file $directory
wp_post_preview_js()

Outputs a small JS snippet on preview tabs/windows to remove `window.name` when a user is navigating to another page.

mysql_to_rfc3339()

Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 (Y-m-d\TH:i:s).

$date_string
wp_raise_memory_limit()

Attempts to raise the PHP memory limit for memory intensive processes.

$context
wp_generate_uuid4()

Generates a random UUID (version 4).

wp_is_uuid()

Validates that a UUID is valid.

$uuid $version