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 1 to 50 of 4125 functions (Page 1 of 83)
trackback_response()

Response to a trackback.

$error $error_message
_get_cron_lock()

Retrieves the cron lock.

do_activate_header()

Adds an action hook specific to this page.

wpmu_activate_stylesheet()

Loads styles specific to this page.

logIO()

logIO() - Writes logging info to a file.

$io $msg
display_header()

Display installation header.

$body_classes
display_setup_form()

Displays installer setup form.

$error
wp_theme_auto_update_setting_template()

Returns the JavaScript template used to display the auto-update setting for a theme.

maybe_create_table()

Creates a table in the database if it doesn't already exist.

$table_name $create_ddl
maybe_add_column()

Adds column to database table, if it doesn't already exist.

$table_name $column_name $create_ddl
maybe_drop_column()

Drops column from database table, if it exists.

$table_name $column_name $drop_ddl
check_column()

Checks that database table column matches the criteria.

$table_name $col_name $col_type +4 more
export_add_js()

Display JavaScript on the page.

export_date_options()

Creates the date options fields for exporting a given post type.

$post_type
wp_nav_menu_max_depth()
$classes
wp_list_widgets()

Display list of the available widgets.

_sort_name_callback()

Callback to sort array by a 'name' key.

$a $b
wp_list_widget_controls()

Show the widgets and their settings for a sidebar.

$sidebar $sidebar_name
wp_list_widget_controls_dynamic_sidebar()

Retrieves the widget control arguments.

$params
next_widget_id_number()
$id_base
wp_widget_control()

Meta widget used to display the control form for a widget.

$sidebar_args
wp_widgets_access_body_class()
$classes
check_upload_size()

Determines whether uploaded file exceeds space quota.

$file
wpmu_delete_blog()

Deletes a site.

$blog_id $drop
wpmu_delete_user()

Deletes a user and all of their posts from the network.

$id
upload_is_user_over_quota()

Checks whether a site has used its allotted upload space.

$display_message
display_space_usage()

Displays the amount of disk space used by the current site. Not used in core.

fix_import_form_size()

Gets the remaining upload space for this site.

$size
upload_space_setting()

Displays the site upload space quota setting form on the Edit Site Settings screen.

$id
refresh_user_details()

Cleans the user cache for a specific user.

$id
format_code_lang()

Returns the language for a language code.

$code
_access_denied_splash()

Displays an access denied message when a user tries to view a site's dashboard they

check_import_new_users()

Checks if the current user has permissions to import new users.

$permission
mu_dropdown_languages()

Generates and displays a drop-down of available languages.

$lang_files $current
site_admin_notice()

Displays an admin notice to upgrade all sites after a core upgrade.

avoid_blog_page_permalink_collision()

Avoids a collision between a site slug and a permalink slug.

$data $postarr
choose_primary_blog()

Handles the display of choosing a user's primary site.

can_edit_network()

Determines whether or not this network from this page can be edited.

$network_id
_thickbox_path_admin_subfolder()

Prints thickbox image paths for Network Admin.

confirm_delete_users()
$users
network_settings_add_js()

Prints JavaScript in the header on the Network Settings screen.

network_edit_site_nav()

Outputs the HTML for a network's "Edit Site" tabular interface.

$args
get_site_screen_help_tab_args()

Returns the arguments for the help tab on the Edit Site screens.

get_site_screen_help_sidebar_content()

Returns the content for the help sidebar on the Edit Site screens.

wp_ensure_editable_role()

Stop execution if the role can not be assigned by the current user.

$role
wp_get_revision_ui_diff()

Get the revision UI diff.

$post $compare_from $compare_to
wp_prepare_revisions_for_js()

Prepare revisions for JavaScript.

$post $selected_revision_id $from
wp_print_revision_templates()

Print JavaScript templates required for the revisions experience.

category_exists()

Checks whether a category exists.

$cat_name $category_parent
get_category_to_edit()

Gets category object for given ID and 'edit' filter context.

$id