current_user_can( string $capability, mixed $args )
Returns whether the current user has the specified capability.
Description
This function also accepts an ID of an object to check against if the capability is a meta capability. Meta capabilities such as edit_post
and edit_user
are capabilities used by the map_meta_cap()
function to map to primitive capabilities that a user or role has, such as edit_posts
and edit_others_posts
.
Example usage:
current_user_can( 'edit_posts' );
current_user_can( 'edit_post', $post->ID );
current_user_can( 'edit_post_meta', $post->ID, $meta_key );
While checking against particular roles in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results.
Note: Will always return true if the current user is a super admin, unless specifically denied.
See also
Parameters
- $capability
-
(Required) Capability name.
- $args
-
(Optional) further parameters, typically starting with an object ID.
Return
(bool) Whether the current user has the given capability. If $capability
is a meta cap and $object_id
is passed, whether the current user has the given meta capability for the given object.
Source
File: wp-includes/capabilities.php
function current_user_can( $capability ) {
$current_user = wp_get_current_user();
if ( empty( $current_user ) )
return false;
$args = array_slice( func_get_args(), 1 );
$args = array_merge( array( $capability ), $args );
return call_user_func_array( array( $current_user, 'has_cap' ), $args );
}
Related
Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: wp_get_current_user() |
Retrieves the current user object. |
wp-includes/capabilities.php: user_can() |
Returns whether a particular user has the specified capability. |
Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_thumbnail() |
Handles the thumbnail column output. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_used_in() |
Handles the used-in column output. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::check_wp_version_check_exists() |
Tests whether |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_https_status() |
Tests if the site is serving content over HTTPS. |
wp-admin/includes/plugin.php: paused_plugins_notice() |
Renders an admin notice in case some plugins have been paused due to errors. |
wp-admin/includes/plugin.php: deactivated_plugins_notice() |
Renders an admin notice when a plugin was deactivated during an update. |
wp-admin/includes/media.php: bulk_edit_attachments() |
Processes the post data for the bulk editing of attachments. |
wp-admin/includes/meta-boxes.php: register_and_do_post_meta_boxes() |
Registers the default post meta boxes, and runs the |
wp-admin/includes/ajax-actions.php: wp_ajax_health_check_loopback_requests() |
Ajax handler for site health checks on loopback requests. |
wp-admin/includes/ajax-actions.php: wp_ajax_health_check_site_status_result() |
Ajax handler for site health check to update the result status. |
wp-admin/includes/ajax-actions.php: wp_ajax_health_check_get_sizes() |
Ajax handler for site health check to get directories and database sizes. |
wp-admin/includes/ajax-actions.php: wp_ajax_toggle_auto_updates() |
Ajax handler to enable or disable plugin and theme auto-updates. |
wp-admin/includes/ajax-actions.php: wp_ajax_send_password_reset() |
Ajax handler sends a password reset link. |
wp-admin/includes/ajax-actions.php: wp_ajax_health_check_dotorg_communication() |
Ajax handler for site health checks on server communication. |
wp-admin/includes/ajax-actions.php: wp_ajax_health_check_background_updates() |
Ajax handler for site health checks on background updates. |
wp-admin/includes/ajax-actions.php: wp_ajax_quick_edit_attachment() |
Ajax handler for updating attachment values and attributes. |
wp-admin/includes/ajax-actions.php: wp_ajax_media_create_image_subsizes() |
Ajax handler for creating missing image sub-sizes for just uploaded images. |
wp-admin/includes/theme.php: paused_themes_notice() |
Renders an admin notice in case some themes have been paused due to errors. |
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::add_active_theme_link_to_index() |
Adds a link to the active theme for users who have proper permissions. |
wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php: WP_REST_Menu_Locations_Controller::get_items_permissions_check() |
Checks whether a given request has permission to read menu locations. |
wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php: WP_REST_Menu_Locations_Controller::get_item_permissions_check() |
Checks if a given request has access to read a menu location. |
wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php: WP_REST_Sidebars_Controller::do_permissions_check() |
Checks if the user has permissions to make the request. |
wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php: WP_REST_Site_Health_Controller::validate_request_permission() |
Validates if the current user can request this REST endpoint. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::edit_media_item_permissions_check() |
Checks if a given request has access to editing media. |
wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php: WP_REST_Menus_Controller::check_has_read_only_access() |
Checks whether the current user has read permission for the endpoint. |
wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php: WP_REST_Autosaves_Controller::get_items_permissions_check() |
Checks if a given request has access to get autosaves. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::get_items_permissions_check() |
Checks if a given request has access to get application passwords. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::get_item_permissions_check() |
Checks if a given request has access to get a specific application password. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::create_item_permissions_check() |
Checks if a given request has access to create application passwords. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::update_item_permissions_check() |
Checks if a given request has access to update application passwords. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::delete_items_permissions_check() |
Checks if a given request has access to delete all application passwords for a user. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::delete_item_permissions_check() |
Checks if a given request has access to delete a specific application password for a user. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::do_permissions_check() |
Performs a permissions check for the request. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::get_items_permissions_check() |
Checks if a given request has access to get plugins. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::get_item_permissions_check() |
Checks if a given request has access to get a specific plugin. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::check_read_permission() |
Checks if the given plugin can be viewed by the current user. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::create_item_permissions_check() |
Checks if a given request has access to upload plugins. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::update_item_permissions_check() |
Checks if a given request has access to update a specific plugin. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::delete_item_permissions_check() |
Checks if a given request has access to delete a specific plugin. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::plugin_status_permission_check() |
Handle updating a plugin’s status. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php: WP_REST_Themes_Controller::get_items_permissions_check() |
Checks if a given request has access to read the theme. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php: WP_REST_Themes_Controller::get_item_permissions_check() |
Checks if a given request has access to read the theme. |
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php: WP_REST_Themes_Controller::check_read_active_theme_permission() |
Checks if a theme can be read. |
wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php: WP_REST_Menu_Items_Controller::check_has_read_only_access() |
Checks whether the current user has read permission for the endpoint. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::check_read_terms_permission_for_post() |
Checks if the terms for a post can be read. |
wp-includes/link-template.php: wp_force_plain_post_permalink() |
Determine whether post should always use a plain permalink structure. |
wp-includes/general-template.php: wp_get_code_editor_settings() |
Generates and returns code editor settings. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::check_password_required() |
Overrides the result of the post password check for REST requested posts. |
wp-includes/customize/class-wp-customize-themes-panel.php: WP_Customize_Themes_Panel::render_template() |
An Underscore (JS) template for rendering this panel’s container. |
wp-includes/customize/class-wp-customize-themes-panel.php: WP_Customize_Themes_Panel::content_template() |
An Underscore (JS) template for this panel’s content (but not its container). |
wp-includes/customize/class-wp-customize-themes-section.php: WP_Customize_Themes_Section::render_template() |
Render a themes section as a JS template. |
wp-includes/customize/class-wp-customize-partial.php: WP_Customize_Partial::check_capabilities() |
Checks if the user can refresh this partial. |
wp-includes/customize/class-wp-customize-theme-control.php: WP_Customize_Theme_Control::content_template() |
Render a JS template for theme display. |
wp-includes/customize/class-wp-customize-media-control.php: WP_Customize_Media_Control::to_json() |
Refresh the parameters passed to the JavaScript via JSON. |
wp-includes/customize/class-wp-customize-header-image-control.php: WP_Customize_Header_Image_Control::render_content() | |
wp-includes/general-template.php: wp_enqueue_code_editor() |
Enqueues assets needed by the code editor for the given settings. |
wp-includes/general-template.php: wp_register() |
Displays the Registration or Admin link. |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::delete_meta_value() |
Deletes a meta value for an object. |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::update_multi_meta_value() |
Updates multiple meta values for an object. |
wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::update_meta_value() |
Updates a meta value for an object. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_items_permissions_check() |
Checks if a given request has access to read comments. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::get_item_permissions_check() |
Checks if a given request has access to read the comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::create_item_permissions_check() |
Checks if a given request has access to create a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::create_item() |
Creates a comment. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::prepare_item_for_database() |
Prepares a single comment to be inserted into the database. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::check_read_post_permission() |
Checks if the post can be read. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::check_read_permission() |
Checks if the comment can be read. |
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php: WP_REST_Comments_Controller::check_edit_permission() |
Checks if a comment can be edited or deleted. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_items_permissions_check() |
Permissions check for getting all users. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_items() |
Retrieves all users. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_item_permissions_check() |
Checks if a given request has access to read a user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::create_item_permissions_check() |
Checks if a given request has access create users. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::update_item_permissions_check() |
Checks if a given request has access to update a user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item_permissions_check() |
Checks if a given request has access delete a user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::check_role_update() |
Determines if the current user is allowed to make the desired roles change. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::get_items_permissions_check() |
Checks if a request has access to read terms in the specified taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::get_item_permissions_check() |
Checks if a request has access to read or edit the specified term. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::create_item_permissions_check() |
Checks if a request has access to create a term. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::update_item_permissions_check() |
Checks if a request has access to update the specified term. |
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php: WP_REST_Terms_Controller::delete_item_permissions_check() |
Checks if a request has access to delete the specified term. |
wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php: WP_REST_Settings_Controller::get_item_permissions_check() |
Checks if a given request has access to read and manage settings. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::create_item_permissions_check() |
Checks if a given request has access to create an attachment. |
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php: WP_REST_Taxonomies_Controller::get_items_permissions_check() |
Checks whether a given request has permission to read taxonomies. |
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php: WP_REST_Taxonomies_Controller::get_items() |
Retrieves all public taxonomies. |
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php: WP_REST_Taxonomies_Controller::get_item_permissions_check() |
Checks if a given request has access to a taxonomy. |
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::get_items_permissions_check() |
Checks if a given request has access to get revisions. |
wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php: WP_REST_Revisions_Controller::delete_item_permissions_check() |
Checks if a given request has access to delete a revision. |
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php: WP_REST_Post_Types_Controller::get_items_permissions_check() |
Checks whether a given request has permission to read types. |
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php: WP_REST_Post_Types_Controller::get_items() |
Retrieves all public post types. |
wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php: WP_REST_Post_Types_Controller::get_item() |
Retrieves a specific post type. |
wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php: WP_REST_Post_Statuses_Controller::get_items_permissions_check() |
Checks whether a given request has permission to read post statuses. |
wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php: WP_REST_Post_Statuses_Controller::check_read_permission() |
Checks whether a given post status should be visible. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::check_assign_terms_permission() |
Checks whether current user can assign all terms sent with the current request. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::check_read_permission() |
Checks if a post can be read. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::check_update_permission() |
Checks if a post can be edited. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::check_create_permission() |
Checks if a post can be created. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::check_delete_permission() |
Checks if a post can be deleted. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_available_actions() |
Gets the link relations available for the post and current user. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::sanitize_post_statuses() |
Sanitizes and validates the list of post statuses, including whether the user can query private statuses. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::get_items_permissions_check() |
Checks if a given request has access to read posts. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::can_access_password_content() |
Checks if the user can access password-protected content. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::create_item_permissions_check() |
Checks if a given request has access to create a post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::update_item_permissions_check() |
Checks if a given request has access to update a post. |
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::handle_status_param() |
Determines validity and normalizes the given status parameter. |
wp-includes/widgets/class-wp-widget-text.php: WP_Widget_Text::update() |
Handles updating settings for the current Text widget instance. |
wp-includes/widgets/class-wp-widget-custom-html.php: WP_Widget_Custom_HTML::update() |
Handles updating settings for the current Custom HTML widget instance. |
wp-includes/widgets/class-wp-widget-custom-html.php: WP_Widget_Custom_HTML::form() |
Outputs the Custom HTML widget settings form. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::wp_ajax_update_widget() |
Updates widget settings asynchronously. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::__construct() |
Initial loader. |
wp-includes/class-wp-query.php: WP_Query::get_posts() |
Retrieves an array of posts based on query variables. |
wp-includes/comment.php: wp_handle_comment_submission() |
Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form. |
wp-includes/comment.php: wp_check_comment_flood() |
Checks whether comment flooding is occurring. |
wp-includes/class-wp-customize-control.php: WP_Customize_Control::render_content() |
Render the control’s content. |
wp-includes/class-wp-customize-control.php: WP_Customize_Control::check_capabilities() |
Checks if the user can use this control. |
wp-includes/admin-bar.php: wp_admin_bar_edit_menu() |
Provides an edit link for posts and terms. |
wp-includes/admin-bar.php: wp_admin_bar_new_content_menu() |
Adds “Add New” menu. |
wp-includes/admin-bar.php: wp_admin_bar_comments_menu() |
Adds edit comments link with awaiting moderation count bubble. |
wp-includes/admin-bar.php: wp_admin_bar_appearance_menu() |
Adds appearance submenu items to the “Site Name” menu. |
wp-includes/class-wp-customize-section.php: WP_Customize_Section::check_capabilities() |
Checks required user capabilities and whether the theme has the feature support required by the section. |
wp-includes/admin-bar.php: wp_admin_bar_wp_menu() |
Adds the WordPress logo menu. |
wp-includes/admin-bar.php: wp_admin_bar_my_account_item() |
Adds the “My Account” item. |
wp-includes/admin-bar.php: wp_admin_bar_my_account_menu() |
Adds the “My Account” submenu items. |
wp-includes/admin-bar.php: wp_admin_bar_site_menu() |
Adds the “Site Name” menu. |
wp-includes/admin-bar.php: wp_admin_bar_customize_menu() |
Adds the “Customize” link to the Toolbar. |
wp-includes/admin-bar.php: wp_admin_bar_my_sites_menu() |
Adds the “My Sites/[Site Name]” menu and all submenus. |
wp-includes/link-template.php: get_adjacent_post() |
Retrieves the adjacent post. |
wp-includes/link-template.php: get_edit_post_link() |
Retrieves the edit post link for post. |
wp-includes/link-template.php: get_delete_post_link() |
Retrieves the delete posts link for post. |
wp-includes/link-template.php: get_edit_comment_link() |
Retrieves the edit comment link. |
wp-includes/link-template.php: edit_comment_link() |
Displays the edit comment link with formatting. |
wp-includes/link-template.php: get_edit_bookmark_link() |
Displays the edit bookmark link. |
wp-includes/link-template.php: edit_bookmark_link() |
Displays the edit bookmark link anchor content. |
wp-includes/link-template.php: get_edit_user_link() |
Retrieves the edit user link. |
wp-includes/link-template.php: get_edit_term_link() |
Retrieves the URL for editing a given term. |
wp-includes/link-template.php: edit_term_link() |
Displays or retrieves the edit term link with formatting. |
wp-includes/capabilities.php: current_user_can_for_blog() |
Returns whether the current user has the specified capability for a given site. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deletePage() |
Deletes a page. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editPage() |
Edits a page. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPageList() |
Retrieves page list. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getAuthors() |
Retrieves authors list. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTags() |
Gets the list of all tags. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newCategory() |
Creates a new category. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deleteCategory() |
Deletes a category. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_suggestCategories() |
Retrieves category list. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getComment() |
Retrieves a comment. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getComments() |
Retrieves comments. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deleteComment() |
Deletes a comment. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editComment() |
Edits a comment. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newComment() |
Creates a new comment. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getCommentStatusList() |
Retrieves all of the comment status. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getCommentCount() |
Retrieves comment counts. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostStatusList() |
Retrieves post statuses. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPageStatusList() |
Retrieves page statuses. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPageTemplates() |
Retrieves page templates. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::_getOptions() |
Retrieves blog options value from list. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_setOptions() |
Updates blog options. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getMediaItem() |
Retrieves a media item by ID. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostFormats() |
Retrieves a list of post formats used by the site. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostType() |
Retrieves a post type. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPostTypes() |
Retrieves post types. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getMediaLibrary() |
Retrieves a collection of media library items (or attachments). |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getRevisions() |
Retrieves revisions for a specific post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_restoreRevision() |
Restores a post revision. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getUsersBlogs() |
Retrieves blogs that user owns. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getUserInfo() |
Retrieves user’s data. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getPost() |
Retrieves a post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getRecentPosts() |
Retrieves the list of recent posts. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_newPost() |
Creates a new post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_editPost() |
Edits a post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_deletePost() |
Deletes a post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newPost() |
Creates a new post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_editPost() |
Edits a post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_getPost() |
Retrieves a post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_getRecentPosts() |
Retrieves list of recent posts. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_getCategories() |
Retrieves the list of categories on a given blog. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newMediaObject() |
Uploads a file, following your settings. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_getRecentPostTitles() |
Retrieves the post titles of recent posts. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_getCategoryList() |
Retrieves the list of all categories on a blog. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_getPostCategories() |
Retrieves post categories. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_setPostCategories() |
Sets categories for a post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mt_publishPost() |
Sets a post’s publish status to ‘publish’. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::get_custom_fields() |
Retrieves custom fields for post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::set_custom_fields() |
Sets custom fields for post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::get_term_custom_fields() |
Retrieves custom fields for a term. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::set_term_custom_fields() |
Sets custom fields for a term. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUsersBlogs() |
Retrieves the blogs of the user. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::_toggle_sticky() |
Encapsulates the logic for sticking a post and determining if the user has permission to do so. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::_insert_post() |
Helper method for wp_newPost() and wp_editPost(), containing shared logic. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deletePost() |
Deletes a post for any registered post type. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPost() |
Retrieves a post. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPosts() |
Retrieves posts. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_newTerm() |
Creates a new term. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editTerm() |
Edits a term. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_deleteTerm() |
Deletes a term. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTerm() |
Retrieves a term. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTerms() |
Retrieves all terms for a taxonomy. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTaxonomy() |
Retrieves a taxonomy. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getTaxonomies() |
Retrieves all taxonomies. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUser() |
Retrieves a user. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUsers() |
Retrieves users. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getProfile() |
Retrieves information about the requesting user. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_editProfile() |
Edits user’s profile. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPage() |
Retrieves a page. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getPages() |
Retrieves Pages. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::handle_override_changeset_lock_request() |
Removes changeset lock when take over request is sent via Ajax. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::handle_dismiss_autosave_or_lock_request() |
Deletes a given auto-draft changeset or the autosave revision for a given changeset or delete changeset lock. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::enqueue_control_scripts() |
Enqueues scripts for customize controls. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_pane_settings() |
Prints JavaScript settings for parent window. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::handle_load_themes_request() |
Loads themes into the theme browsing/installation UI. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::__construct() |
Constructor. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::setup_theme() |
Starts preview and customize theme. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::unsanitized_post_values() |
Gets dirty pre-sanitized setting values in the current customized state. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_preview_init() |
Prints JavaScript settings. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::customize_preview_settings() |
Prints JavaScript settings for preview frame. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::validate_setting_values() |
Validates setting values. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::save() |
Handles customize_save WP Ajax request to save/update a changeset. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::handle_changeset_trash_request() |
Handles request to trash a changeset. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::check_changeset_lock_with_heartbeat() |
Checks locked changeset with heartbeat API. |
wp-includes/post-template.php: wp_post_revision_title() |
Retrieves formatted date timestamp of a revision (linked to that revisions’s page). |
wp-includes/post-template.php: wp_post_revision_title_expanded() |
Retrieves formatted date timestamp of a revision (linked to that revisions’s page). |
wp-includes/post-template.php: wp_list_post_revisions() |
Displays a list of a post’s revisions. |
wp-includes/canonical.php: redirect_canonical() |
Redirects incoming links to the proper URL based on the site url. |
wp-includes/post.php: get_posts_by_author_sql() |
Retrieves the post SQL based on capability, author, and type. |
wp-includes/post.php: wp_insert_post() |
Inserts or update a post. |
wp-includes/post.php: _count_posts_cache_key() |
Returns the cache key for wp_count_posts() based on the passed arguments. |
wp-includes/post.php: wp_count_posts() |
Counts number of posts of a post type and if user has permissions to view. |
wp-includes/kses.php: kses_init_filters() |
Adds all KSES input form content filters. |
wp-includes/kses.php: kses_init() |
Sets up most of the KSES filters for input form content. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::ajax_insert_auto_draft_post() |
Ajax handler for adding a new auto-draft post. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::print_post_type_container() |
Prints the markup for new menu items. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::sanitize_nav_menus_created_posts() |
Sanitizes post IDs for posts created for nav menu items to be published. |
wp-includes/class-wp-customize-panel.php: WP_Customize_Panel::check_capabilities() |
Checks required user capabilities and whether the theme has the feature support required by the panel. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::__construct() |
Constructor. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::ajax_load_available_items() |
Ajax handler for loading available menu items. |
wp-includes/class-wp-customize-nav-menus.php: WP_Customize_Nav_Menus::ajax_search_available_items() |
Ajax handler for searching available menu items. |
wp-includes/class-wp-oembed-controller.php: WP_oEmbed_Controller::get_proxy_item_permissions_check() |
Checks if current user can make a proxy oEmbed request. |
wp-includes/class-wp-editor.php: _WP_Editors::editor() |
Outputs the HTML for a single instance of the editor. |
wp-includes/update.php: wp_get_update_data() |
Collects counts and UI strings for available updates. |
wp-includes/comment-template.php: wp_comment_form_unfiltered_html_nonce() |
Displays form token for unfiltered comments. |
wp-includes/widgets.php: wp_widget_rss_output() |
Display the RSS entries in a list. |
wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::check_capabilities() |
Validate user capabilities whether the theme supports the setting. |
wp-includes/functions.php: get_allowed_mime_types() |
Retrieves the list of allowed mime types and file extensions. |
wp-includes/functions.php: wp_upload_bits() |
Creates a file in the upload folder with given content. |
wp-admin/includes/class-custom-background.php: Custom_Background::admin_page() |
Displays the custom background page. |
wp-admin/includes/class-custom-background.php: Custom_Background::ajax_background_add() |
Handles Ajax request for adding custom background context to an attachment. |
wp-admin/includes/class-custom-background.php: Custom_Background::wp_set_background_image() | |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::admin_page() |
Display the page based on the current step. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::ajax_header_crop() |
Gets attachment uploaded by Media Manager, crops it, then saves it as a new object. Returns JSON-encoded object details. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::ajax_header_add() |
Given an attachment ID for a header image, updates its “last used” timestamp to now. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::ajax_header_remove() |
Given an attachment ID for a header image, unsets it as a user-uploaded header image for the active theme. |
wp-admin/press-this.php: wp_load_press_this() | |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::take_action() |
Execute custom header modification. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::step_1() |
Display first step of custom header image page. |
wp-admin/menu-header.php: _wp_menu_output() |
Display menu. |
wp-admin/update-core.php: list_plugin_updates() | |
wp-admin/update-core.php: list_theme_updates() |
Display the upgrade themes form. |
wp-admin/includes/class-wp-screen.php: WP_Screen::render_meta_boxes_preferences() |
Renders the meta boxes preferences. |
wp-admin/includes/class-theme-upgrader-skin.php: Theme_Upgrader_Skin::after() |
Action to perform following a single theme update. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::_get_row_actions() | |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::extra_tablenav() | |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_cb() |
Handles the checkbox column output. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_title() |
Handles the title column output. |
wp-admin/includes/class-wp-media-list-table.php: WP_Media_List_Table::column_parent() |
Handles the parent column output. |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::__construct() |
Constructor. |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::prepare_items() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::no_items() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::get_bulk_actions() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::single_row() | |
wp-admin/includes/class-wp-privacy-policy-content.php: WP_Privacy_Policy_Content::text_change_check() |
Quick check if any privacy info has changed. |
wp-admin/includes/class-wp-privacy-policy-content.php: WP_Privacy_Policy_Content::notice() |
Add a notice with a link to the guide when editing the privacy policy page. |
wp-admin/includes/misc.php: wp_check_locked_posts() |
Checks lock status for posts displayed on the Posts screen. |
wp-admin/includes/misc.php: wp_refresh_post_lock() |
Checks lock status on the New/Edit Post screen and refresh the lock. |
wp-admin/includes/misc.php: wp_refresh_post_nonces() |
Checks nonce expiration on the New/Edit Post screen and refresh if needed. |
wp-admin/includes/class-wp-list-table.php: WP_List_Table::comments_bubble() |
Displays a comment count bubble. |
wp-admin/includes/media.php: media_upload_max_image_resize() |
Displays the checkbox to scale images. |
wp-admin/includes/media.php: wp_media_attach_action() |
Encapsulates the logic for Attach/Detach actions. |
wp-admin/includes/media.php: get_media_item() |
Retrieves HTML form for modifying the image attachment. |
wp-admin/includes/media.php: get_compat_media_markup() | |
wp-admin/includes/media.php: media_upload_form_handler() |
Handles form submissions for the legacy media uploader. |
wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::get_bulk_actions() | |
wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::column_name() |
Handles the name column output. |
wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::__construct() |
Constructor. |
wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-ms-themes-list-table.php: WP_MS_Themes_List_Table::prepare_items() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::extra_tablenav() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::single_row() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::column_response() | |
wp-admin/includes/template.php: wp_terms_checklist() |
Outputs an unordered list of checkbox input elements labelled with term names. |
wp-admin/includes/template.php: wp_popular_terms_checklist() |
Retrieves a list of the most popular terms from the specified taxonomy. |
wp-admin/includes/template.php: get_inline_data() |
Adds hidden fields with the data for use in the inline editor for posts and pages. |
wp-admin/includes/template.php: wp_comment_reply() |
Outputs the in-line comment reply-to form in the Comments list table. |
wp-admin/includes/template.php: meta_form() |
Prints the form in the Custom Fields meta box. |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::__construct() |
Constructor. |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::get_bulk_actions() | |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::extra_tablenav() | |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::column_cb() |
Handles the checkbox column output. |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::column_title() |
Handles the title column output. |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/class-wp-posts-list-table.php: WP_Posts_List_Table::inline_edit() |
Outputs the hidden row displayed when inline editing |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::get_bulk_actions() | |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::column_username() |
Handles the username column output. |
wp-admin/includes/class-wp-ms-users-list-table.php: WP_MS_Users_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/comment.php: edit_comment() |
Updates a comment with values provided in $_POST. |
wp-admin/includes/plugin-install.php: install_plugin_install_status() |
Determines the status we can perform on a plugin. |
wp-admin/includes/plugin-install.php: install_plugin_information() |
Displays plugin information in dialog box form. |
wp-admin/includes/class-wp-links-list-table.php: WP_Links_List_Table::ajax_user_can() | |
wp-admin/includes/ajax-actions.php: wp_ajax_wp_privacy_erase_personal_data() |
Ajax handler for erasing personal data. |
wp-admin/includes/bookmark.php: edit_link() |
Updates or inserts a link using values provided in $_POST. |
wp-admin/includes/bookmark.php: wp_link_manager_disabled_message() |
Outputs the ‘disabled’ message for the ClassicPress Link Manager. |
wp-admin/includes/ajax-actions.php: wp_ajax_wp_privacy_export_personal_data() |
Ajax handler for exporting a user’s personal data. |
wp-admin/includes/ajax-actions.php: wp_ajax_crop_image() |
Ajax handler for cropping an image. |
wp-admin/includes/ajax-actions.php: wp_ajax_save_wporg_username() |
Ajax handler for saving the user’s WordPress.org username. |
wp-admin/includes/ajax-actions.php: wp_ajax_install_theme() |
Ajax handler for installing a theme. |
wp-admin/includes/ajax-actions.php: wp_ajax_update_theme() |
Ajax handler for updating a theme. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_theme() |
Ajax handler for deleting a theme. |
wp-admin/includes/ajax-actions.php: wp_ajax_install_plugin() |
Ajax handler for installing a plugin. |
wp-admin/includes/ajax-actions.php: wp_ajax_update_plugin() |
Ajax handler for updating a plugin. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_plugin() |
Ajax handler for deleting a plugin. |
wp-admin/includes/ajax-actions.php: wp_ajax_save_attachment_order() |
Ajax handler for saving the attachment order. |
wp-admin/includes/ajax-actions.php: wp_ajax_send_attachment_to_editor() |
Ajax handler for sending an attachment to the editor. |
wp-admin/includes/ajax-actions.php: wp_ajax_get_revision_diffs() |
Ajax handler for getting revision diffs. |
wp-admin/includes/ajax-actions.php: wp_ajax_query_themes() |
Ajax handler for getting themes from themes_api(). |
wp-admin/includes/ajax-actions.php: wp_ajax_parse_embed() |
Apply [embed] Ajax handlers to a string. |
wp-admin/includes/ajax-actions.php: wp_ajax_parse_media_shortcode() | |
wp-admin/includes/ajax-actions.php: wp_ajax_destroy_sessions() |
Ajax handler for destroying multiple open sessions for a user. |
wp-admin/includes/ajax-actions.php: wp_ajax_set_attachment_thumbnail() |
Ajax handler for setting the featured image for an attachment. |
wp-admin/includes/ajax-actions.php: wp_ajax_wp_remove_post_lock() |
Ajax handler for removing a post lock. |
wp-admin/includes/ajax-actions.php: wp_ajax_get_attachment() |
Ajax handler for getting an attachment. |
wp-admin/includes/ajax-actions.php: wp_ajax_query_attachments() |
Ajax handler for querying attachments. |
wp-admin/includes/ajax-actions.php: wp_ajax_save_attachment() |
Ajax handler for updating attachment attributes. |
wp-admin/includes/ajax-actions.php: wp_ajax_save_attachment_compat() |
Ajax handler for saving backward compatible attachment attributes. |
wp-admin/includes/ajax-actions.php: wp_ajax_inline_save_tax() |
Ajax handler for quick edit saving for a term. |
wp-admin/includes/ajax-actions.php: wp_ajax_widgets_order() |
Ajax handler for saving the widgets order. |
wp-admin/includes/ajax-actions.php: wp_ajax_save_widget() |
Ajax handler for saving a widget. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_inactive_widgets() |
Ajax handler for removing inactive widgets. |
wp-admin/includes/ajax-actions.php: wp_ajax_upload_attachment() |
Ajax handler for uploading attachments |
wp-admin/includes/ajax-actions.php: wp_ajax_image_editor() |
Ajax handler for image editing. |
wp-admin/includes/ajax-actions.php: wp_ajax_set_post_thumbnail() |
Ajax handler for setting the featured image. |
wp-admin/includes/ajax-actions.php: wp_ajax_get_post_thumbnail_html() |
Ajax handler for retrieving HTML for the featured image. |
wp-admin/includes/ajax-actions.php: wp_ajax_update_welcome_panel() |
Ajax handler for updating whether to display the welcome panel. |
wp-admin/includes/ajax-actions.php: wp_ajax_menu_get_metabox() |
Ajax handler for retrieving menu meta boxes. |
wp-admin/includes/ajax-actions.php: wp_ajax_menu_locations_save() |
Ajax handler for menu locations save. |
wp-admin/includes/ajax-actions.php: wp_ajax_menu_quick_search() |
Ajax handler for menu quick searching. |
wp-admin/includes/ajax-actions.php: wp_ajax_inline_save() |
Ajax handler for Quick Edit saving a post from a list table. |
wp-admin/includes/ajax-actions.php: wp_ajax_replyto_comment() |
Ajax handler for replying to a comment. |
wp-admin/includes/ajax-actions.php: wp_ajax_edit_comment() |
Ajax handler for editing a comment. |
wp-admin/includes/ajax-actions.php: wp_ajax_add_menu_item() |
Ajax handler for adding a menu item. |
wp-admin/includes/ajax-actions.php: wp_ajax_add_meta() |
Ajax handler for adding meta. |
wp-admin/includes/ajax-actions.php: wp_ajax_add_user() |
Ajax handler for adding a user. |
wp-admin/includes/ajax-actions.php: wp_ajax_add_link_category() |
Ajax handler for adding a link category. |
wp-admin/includes/ajax-actions.php: wp_ajax_add_tag() |
Ajax handler to add a tag. |
wp-admin/includes/ajax-actions.php: wp_ajax_get_tagcloud() |
Ajax handler for getting a tagcloud. |
wp-admin/includes/ajax-actions.php: wp_ajax_get_comments() |
Ajax handler for getting comments. |
wp-admin/includes/ajax-actions.php: _wp_ajax_add_hierarchical_term() |
Ajax handler for adding a hierarchical term. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_comment() |
Ajax handler for deleting a comment. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_tag() |
Ajax handler for deleting a tag. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_link() |
Ajax handler for deleting a link. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_meta() |
Ajax handler for deleting meta. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_post() |
Ajax handler for deleting a post. |
wp-admin/includes/ajax-actions.php: wp_ajax_trash_post() |
Ajax handler for sending a post to the Trash. |
wp-admin/includes/ajax-actions.php: wp_ajax_delete_page() |
Ajax handler to delete a page. |
wp-admin/includes/ajax-actions.php: wp_ajax_dim_comment() |
Ajax handler to dim a comment. |
wp-admin/includes/ajax-actions.php: wp_ajax_ajax_tag_search() |
Ajax handler for tag search. |
wp-admin/includes/ajax-actions.php: wp_ajax_wp_compression_test() |
Ajax handler for compression testing. |
wp-admin/includes/ajax-actions.php: wp_ajax_imgedit_preview() |
Ajax handler for image editor previews. |
wp-admin/includes/ajax-actions.php: wp_ajax_autocomplete_user() |
Ajax handler for user autocomplete. |
wp-admin/includes/class-wp-plugin-install-list-table.php: WP_Plugin_Install_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-plugin-install-list-table.php: WP_Plugin_Install_List_Table::prepare_items() | |
wp-admin/includes/class-wp-plugin-install-list-table.php: WP_Plugin_Install_List_Table::display_rows() | |
wp-admin/includes/meta-boxes.php: link_submit_meta_box() |
Displays link create form fields. |
wp-admin/includes/meta-boxes.php: post_submit_meta_box() |
Displays post submit form fields. |
wp-admin/includes/meta-boxes.php: attachment_submit_meta_box() |
Displays attachment submit form fields. |
wp-admin/includes/meta-boxes.php: post_tags_meta_box() |
Displays post tags form fields. |
wp-admin/includes/meta-boxes.php: post_categories_meta_box() |
Displays post categories form fields. |
wp-admin/includes/meta-boxes.php: post_custom_meta_box() |
Displays custom fields form fields. |
wp-admin/includes/class-wp-internal-pointers.php: WP_Internal_Pointers::enqueue_scripts() |
Initializes the new feature pointers. |
wp-admin/includes/class-theme-installer-skin.php: Theme_Installer_Skin::after() |
Action to perform following a single theme install. |
wp-admin/includes/class-plugin-upgrader-skin.php: Plugin_Upgrader_Skin::after() |
Action to perform following a single plugin update. |
wp-admin/includes/class-bulk-theme-upgrader-skin.php: Bulk_Theme_Upgrader_Skin::bulk_footer() | |
wp-admin/includes/theme.php: get_theme_update_available() |
Retrieves the update link if there is a theme update available. |
wp-admin/includes/theme.php: get_theme_feature_list() |
Retrieves list of WordPress theme features (aka theme tags). |
wp-admin/includes/theme.php: wp_prepare_themes_for_js() |
Prepares themes for JavaScript. |
wp-admin/includes/theme.php: customize_themes_print_templates() |
Prints JS templates for the theme-browsing UI in the Customizer. |
wp-admin/includes/user.php: edit_user() |
Edit user settings based on contents of $_POST |
wp-admin/includes/plugin.php: user_can_access_admin_page() |
Determines whether the current user can access the current admin page. |
wp-admin/includes/plugin.php: add_menu_page() |
Adds a top-level menu page. |
wp-admin/includes/plugin.php: add_submenu_page() |
Adds a submenu page. |
wp-admin/includes/plugin.php: add_users_page() |
Adds a submenu page to the Users/Profile main menu. |
wp-admin/includes/plugin.php: validate_active_plugins() |
Validates active plugins. |
wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::get_bulk_actions() | |
wp-admin/includes/class-wp-ms-sites-list-table.php: WP_MS_Sites_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/class-wp-themes-list-table.php: WP_Themes_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-themes-list-table.php: WP_Themes_List_Table::no_items() | |
wp-admin/includes/class-wp-themes-list-table.php: WP_Themes_List_Table::display_rows() | |
wp-admin/includes/file.php: _wp_handle_upload() |
Handles PHP uploads in ClassicPress. |
wp-admin/includes/class-plugin-installer-skin.php: Plugin_Installer_Skin::after() |
Action to perform following a plugin install. |
wp-admin/includes/file.php: wp_edit_theme_plugin_file() |
Attempts to edit a file for a theme or plugin. |
wp-admin/includes/post.php: get_sample_permalink_html() |
Returns the HTML of the sample permalink slug editor. |
wp-admin/includes/post.php: post_preview() |
Saves a draft or manually autosaves for the purpose of showing a post preview. |
wp-admin/includes/post.php: wp_autosave() |
Saves a post submitted with XHR. |
wp-admin/includes/post.php: wp_edit_attachments_query_vars() |
Returns the query variables for the current attachments request. |
wp-admin/includes/post.php: _wp_translate_postdata() |
Renames |
wp-admin/includes/post.php: edit_post() |
Updates an existing post with values provided in |
wp-admin/includes/post.php: bulk_edit_posts() |
Processes the post data for the bulk editing of posts. |
wp-admin/includes/post.php: wp_write_post() |
Creates a new post from the “Write Post” form using |
wp-admin/includes/post.php: add_meta() |
Adds post meta data defined in the |
wp-admin/includes/dashboard.php: wp_dashboard_recent_posts() |
Generates Publishing Soon and Recently Published sections. |
wp-admin/includes/dashboard.php: wp_dashboard_recent_comments() |
Show Comments section. |
wp-admin/includes/dashboard.php: wp_dashboard_quota() |
Displays file upload quota on dashboard. |
wp-admin/includes/dashboard.php: _wp_dashboard_recent_comments_row() |
Outputs a row for the Recent Comments widget. |
wp-admin/includes/class-wp-theme-install-list-table.php: WP_Theme_Install_List_Table::ajax_user_can() | |
wp-admin/includes/update.php: wp_plugin_update_rows() |
Adds a callback to display update information for plugins with updates available. |
wp-admin/includes/update.php: wp_plugin_update_row() |
Displays update information for a plugin. |
wp-admin/includes/update.php: wp_theme_update_rows() |
Adds a callback to display update information for themes with updates available. |
wp-admin/includes/update.php: wp_theme_update_row() |
Displays update information for a theme. |
wp-admin/includes/update.php: maintenance_nag() |
Displays maintenance nag HTML message. |
wp-admin/includes/dashboard.php: wp_dashboard_setup() |
Registers dashboard widgets. |
wp-admin/includes/dashboard.php: wp_add_dashboard_widget() |
Adds a new dashboard widget. |
wp-admin/includes/dashboard.php: wp_dashboard_right_now() |
Dashboard widget that displays some basic stats about the site. |
wp-admin/includes/dashboard.php: wp_network_dashboard_right_now() | |
wp-admin/includes/dashboard.php: wp_dashboard_quick_press() |
The Quick Draft widget display and creation of drafts. |
wp-admin/includes/class-bulk-plugin-upgrader-skin.php: Bulk_Plugin_Upgrader_Skin::bulk_footer() | |
wp-admin/includes/update.php: core_update_footer() |
Returns core update footer message. |
wp-admin/includes/update.php: update_nag() |
Returns core update notification message. |
wp-admin/includes/update.php: update_right_now_message() |
Displays WordPress version and active theme in the ‘At a Glance’ dashboard widget. |
wp-admin/includes/revision.php: wp_prepare_revisions_for_js() |
Prepare revisions for JavaScript. |
wp-admin/includes/ms.php: network_edit_site_nav() |
Outputs the HTML for a network’s “Edit Site” tabular interface. |
wp-admin/includes/ms.php: check_import_new_users() |
Checks if the current user has permissions to import new users. |
wp-admin/includes/ms.php: site_admin_notice() |
Displays an admin notice to upgrade all sites after a core upgrade. |
wp-admin/includes/ms.php: confirm_delete_users() | |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::single_row() |
Generate HTML for a single row on the users.php admin panel. |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::ajax_user_can() | |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::get_bulk_actions() | |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::column_cb() | |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::handle_row_actions() |
Generates and displays row action links. |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::inline_edit() |
Outputs the hidden row displayed when inline editing |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::ajax_user_can() |
Check the current user’s permissions. |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::get_bulk_actions() |
Retrieve an associative array of bulk actions available on this table. |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::extra_tablenav() |
Output the controls to allow user roles to be changed in bulk. |
Changelog
Version | Description |
---|---|
5.8.0 | Converted to wrapper for the user_can() function. |
5.3.0 | Formalized the existing and already documented ...$args parameter by adding it to the function signature. |
2.0.0 | Introduced. |