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 2601 to 2650 of 4125 functions (Page 53 of 83)
sanitize_meta()

Sanitizes meta value.

$meta_key $meta_value $object_type +1 more
register_meta()

Registers a meta key.

$object_type $meta_key $args +1 more
filter_default_metadata()

Filters into default_{$object_type}_metadata and adds in default value.

$value $object_id $meta_key +2 more
registered_meta_key_exists()

Checks if a meta key is registered.

$object_type $meta_key $object_subtype
unregister_meta_key()

Unregisters a meta key from the list of registered keys.

$object_type $meta_key $object_subtype
get_registered_meta_keys()

Retrieves a list of registered metadata args for an object type, keyed by their meta keys.

$object_type $object_subtype
get_registered_metadata()

Retrieves registered metadata for a specified object.

$object_type $object_id $meta_key
_wp_register_meta_args_allowed_list()

Filters out `register_meta()` args based on an allowed list.

$args $default_args
get_object_subtype()

Returns the object subtype for a given object ID of a specific type.

$object_type $object_id
wp_paused_plugins()

Get the instance for storing paused plugins.

wp_paused_themes()

Get the instance for storing paused extensions.

wp_get_extension_error_description()

Get a human readable description of an extension's error.

$error
wp_register_fatal_error_handler()

Registers the shutdown handler for fatal errors.

wp_is_fatal_error_handler_enabled()

Checks whether the fatal error handler is enabled.

wp_recovery_mode()

Access the WordPress Recovery Mode instance.

wp_insert_site()

Inserts a new site into the database.

$data
wp_update_site()

Updates a site in the database.

$site_id $data
wp_delete_site()

Deletes a site from the database.

$site_id
get_site()

Retrieves site data given a site ID or site object.

$site
_prime_site_caches()

Adds any sites from the given IDs to the cache that do not already exist in cache.

$ids $update_meta_cache
wp_lazyload_site_meta()

Queue site meta for lazy-loading.

$site_ids
update_site_cache()

Updates sites in cache.

$sites $update_meta_cache
update_sitemeta_cache()

Updates metadata cache for list of site IDs.

$site_ids
get_sites()

Retrieves a list of sites matching requested arguments.

$args
wp_prepare_site_data()

Prepares site data for insertion or update in the database.

$data $defaults $old_site
wp_normalize_site_data()

Normalizes data for a site prior to inserting or updating in the database.

$data
wp_validate_site_data()

Validates data for a site prior to inserting or updating in the database.

$errors $data $old_site
wp_initialize_site()

Runs the initialization routine for a given site.

$site_id $args
wp_uninitialize_site()

Runs the uninitialization routine for a given site.

$site_id
wp_is_site_initialized()

Checks whether a site is initialized.

$site_id
clean_blog_cache()

Clean the blog cache

$blog
add_site_meta()

Adds metadata to a site.

$site_id $meta_key $meta_value +1 more
delete_site_meta()

Removes metadata matching criteria from a site.

$site_id $meta_key $meta_value
get_site_meta()

Retrieves metadata for a site.

$site_id $key $single
update_site_meta()

Updates metadata for a site.

$site_id $meta_key $meta_value +1 more
delete_site_meta_by_key()

Deletes everything from site meta matching meta key.

$meta_key
wp_maybe_update_network_site_counts_on_update()

Updates the count of sites for a network based on a changed site.

$new_site $old_site
wp_maybe_transition_site_statuses_on_update()

Triggers actions on site status updates.

$new_site $old_site
wp_maybe_clean_new_site_cache_on_update()

Cleans the necessary caches after specific site data has been updated.

$new_site $old_site
wp_update_blog_public_option_on_site_update()

Updates the `blog_public` option for a given site ID.

$site_id $is_public
wp_cache_set_sites_last_changed()

Sets the last changed time for the 'sites' cache group.

wp_check_site_meta_support_prefilter()

Aborts calls to site meta if it is not supported.

$check
wpmu_update_blogs_date()

Updates the last_updated field for the current site.

get_blogaddress_by_id()

Gets a full site URL, given a site ID.

$blog_id
get_blogaddress_by_name()

Gets a full site URL, given a site name.

$blogname
get_id_from_blogname()

Retrieves a site's ID given its (subdomain or directory) slug.

$slug
get_blog_details()

Retrieves the details for a blog from the blogs table and blog options.

$fields $get_all
refresh_blog_details()

Clears the blog details cache.

$blog_id
update_blog_details()

Updates the details for a blog and the blogs table for a given blog ID.

$blog_id $details
clean_site_details_cache()

Cleans the site details cache for a site.

$site_id