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 2751 to 2800 of 4125 functions (Page 56 of 83)
create_empty_blog()

Create an empty blog.

$domain $path $weblog_title +1 more
get_admin_users_for_domain()

Get the admin for a domain/path combination.

$domain $path
wp_get_sites()

Return an array of sites for a network or networks.

$args
is_user_option_local()

Check whether a usermeta key has to do with the current blog.

$key $user_id $blog_id
insert_blog()

Store basic site info in the blogs table.

$domain $path $site_id
install_blog()

Install an empty blog.

$blog_id $blog_title
install_blog_defaults()

Set blog defaults.

$blog_id $user_id
update_user_status()

Update the status of a user in the database.

$id $pref $value +1 more
global_terms()

Maintains a canonical list of terms by syncing terms created for each blog with the global terms table.

$term_id $deprecated
wp_scripts()

Initializes $wp_scripts if it has not been set.

_wp_scripts_maybe_doing_it_wrong()

Helper function to output a _doing_it_wrong message when applicable.

$function_name $handle
wp_print_scripts()

Prints scripts in document head that are in the $handles queue.

$handles
wp_add_inline_script()

Adds extra code to a registered script.

$handle $data $position
wp_register_script()

Registers a new script.

$handle $src $deps +2 more
wp_localize_script()

Localizes a script.

$handle $object_name $l10n
wp_set_script_translations()

Sets translated strings for a script.

$handle $domain $path
wp_deregister_script()

Removes a registered script.

$handle
wp_enqueue_script()

Enqueues a script.

$handle $src $deps +2 more
wp_dequeue_script()

Removes a previously enqueued script.

$handle
wp_script_is()

Determines whether a script has been added to the queue.

$handle $status
wp_script_add_data()

Adds metadata to a script.

$handle $key $value
get_network()

Retrieves network data given a network ID or network object.

$network
get_networks()

Retrieves a list of networks.

$args
clean_network_cache()

Removes a network from the object cache.

$ids
update_network_cache()

Updates the network cache of given networks.

$networks
_prime_network_caches()

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

$network_ids
map_meta_cap()

Maps a capability to the primitive capabilities required of the given user to

$cap $user_id $args
current_user_can()

Returns whether the current user has the specified capability.

$capability $args
current_user_can_for_site()

Returns whether the current user has the specified capability for a given site.

$site_id $capability $args
author_can()

Returns whether the author of the supplied post has the specified capability.

$post $capability $args
user_can()

Returns whether a particular user has the specified capability.

$user $capability $args
user_can_for_site()

Returns whether a particular user has the specified capability for a given site.

$user $site_id $capability +1 more
wp_roles()

Retrieves the global WP_Roles instance and instantiates it if necessary.

get_role()

Retrieves role object.

$role
add_role()

Adds a role, if it does not exist.

$role $display_name $capabilities
remove_role()

Removes a role, if it exists.

$role
get_super_admins()

Retrieves a list of super admins.

is_super_admin()

Determines whether user is a site admin.

$user_id
grant_super_admin()

Grants Super Admin privileges.

$user_id
revoke_super_admin()

Revokes Super Admin privileges.

$user_id
wp_maybe_grant_install_languages_cap()

Filters the user capabilities to grant the 'install_languages' capability as necessary.

$allcaps
wp_maybe_grant_resume_extensions_caps()

Filters the user capabilities to grant the 'resume_plugins' and 'resume_themes' capabilities as necessary.

$allcaps
wp_maybe_grant_site_health_caps()

Filters the user capabilities to grant the 'view_site_health_checks' capabilities as necessary.

$allcaps $caps $args +1 more
the_permalink()

Displays the permalink for the current post.

$post
user_trailingslashit()

Retrieves a trailing-slashed string if the site is set for adding trailing slashes.

$url $type_of_url
permalink_anchor()

Displays the permalink anchor for the current post.

$mode
wp_force_plain_post_permalink()

Determine whether post should always use a plain permalink structure.

$post $sample
get_the_permalink()

Retrieves the full permalink for the current post or post ID.

$post $leavename
get_permalink()

Retrieves the full permalink for the current post or post ID.

$post $leavename
get_post_permalink()

Retrieves the permalink for a post of a custom post type.

$post $leavename $sample