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 2451 to 2500 of 4125 functions (Page 50 of 83)
add_editor_style()

Adds callback for custom TinyMCE editor stylesheets.

$stylesheet
remove_editor_styles()

Removes all visual editor stylesheets.

get_editor_stylesheets()

Retrieves any registered editor stylesheet URLs.

get_theme_starter_content()

Expands a theme's starter content configuration using core-provided data.

add_theme_support()

Registers theme support for a given feature.

$feature $args
_custom_header_background_just_in_time()

Registers the internal custom header and background routines.

_custom_logo_header_styles()

Adds CSS to hide header text for custom logo, based on Customizer setting.

get_theme_support()

Gets the theme support arguments passed when registering that support.

$feature $args
remove_theme_support()

Allows a theme to de-register its support of a certain feature

$feature
_remove_theme_support()

Do not use. Removes theme support internally without knowledge of those not used

$feature
current_theme_supports()

Checks a theme's support for a given feature.

$feature $args
require_if_theme_supports()

Checks a theme's support for a given feature before loading the functions which implement it.

$feature $file
register_theme_feature()

Registers a theme feature for use in add_theme_support().

$feature $args
get_registered_theme_features()

Gets the list of registered theme features.

get_registered_theme_feature()

Gets the registration config for a theme feature.

$feature
_delete_attachment_theme_mod()

Checks an attachment being deleted to see if it's a header or background image.

$id
check_theme_switched()

Checks if a theme has been changed and runs 'after_switch_theme' hook on the next WP load.

_wp_customize_include()

Includes and instantiates the WP_Customize_Manager class.

_wp_customize_publish_changeset()

Publishes a snapshot's changes.

$new_status $old_status $changeset_post
_wp_customize_changeset_filter_insert_post_data()

Filters changeset post data upon insert to ensure post_name is intact.

$post_data $supplied_post_data
_wp_customize_loader_settings()

Adds settings for the customize-loader script.

wp_customize_url()

Returns a URL to load the Customizer.

$stylesheet
wp_customize_support_script()

Prints a script to check whether or not the Customizer is supported,

is_customize_preview()

Whether the site is being previewed in the Customizer.

_wp_keep_alive_customize_changeset_dependent_auto_drafts()

Makes sure that auto-draft posts get their post_date bumped or status changed

$new_status $old_status $post
create_initial_theme_features()

Creates the initial theme features when the 'setup_theme' action is fired.

wp_is_block_theme()

Returns whether the active theme is a block-based theme or not.

wp_theme_get_element_class_name()

Given an element name, returns a class name.

$element
_add_default_theme_supports()

Adds default theme supports for block themes when the 'after_setup_theme' action fires.

wp_signon()

Authenticates and logs a user in with 'remember' capability.

$credentials $secure_cookie
wp_authenticate_username_password()

Authenticates a user, confirming the username and password are valid.

$user $username $password
wp_authenticate_email_password()

Authenticates a user using the email and password.

$user $email $password
wp_authenticate_cookie()

Authenticates the user using the WordPress auth cookie.

$user $username $password
wp_authenticate_application_password()

Authenticates the user using an application password.

$input_user $username $password
wp_validate_application_password()

Validates the application password credentials passed via Basic Authentication.

$input_user
wp_authenticate_spam_check()

For Multisite blogs, checks if the authenticated user has been marked as a

$user
wp_validate_logged_in_cookie()

Validates the logged-in cookie.

$user_id
count_user_posts()

Gets the number of posts a user has written.

$userid $post_type $public_only
count_many_users_posts()

Gets the number of posts written by a list of users.

$users $post_type $public_only
get_current_user_id()

Gets the current user's ID.

get_user_option()

Retrieves user option that can be either per Site or per Network.

$option $user $deprecated
update_user_option()

Updates user option with global blog capability.

$user_id $option_name $newvalue +1 more
delete_user_option()

Deletes user option with global blog capability.

$user_id $option_name $is_global
get_user()

Retrieves user info by user ID.

$user_id
get_users()

Retrieves list of users matching criteria.

$args
wp_list_users()

Lists all the users of the site, with several options available.

$args
get_blogs_of_user()

Gets the sites a user belongs to.

$user_id $all
is_user_member_of_blog()

Finds out whether a user is a member of a given blog.

$user_id $blog_id
add_user_meta()

Adds meta data to a user.

$user_id $meta_key $meta_value +1 more
delete_user_meta()

Removes metadata matching criteria from a user.

$user_id $meta_key $meta_value