esc_url() WordPress Function
The esc_url() function is a WordPress function that is used to escape URL strings. It is used to clean up URL strings before they are outputted to the browser. This function is especially useful when outputting URL strings that contain characters that have special meaning in HTML, such as & and <.
esc_url( string $url, string[] $protocols = null, string $_context = 'display' ) #
Checks and cleans a URL.
Description
A number of characters are removed from the URL. If the URL is for displaying (the default behaviour) ampersands are also replaced. The ‘clean_url’ filter is applied to the returned cleaned URL.
Parameters
- $url
(string)(Required)The URL to be cleaned.
- $protocols
(string[])(Optional) An array of acceptable protocols. Defaults to return value of wp_allowed_protocols().
Default value: null
- $_context
(string)(Optional)Private. Use esc_url_raw() for database usage.
Default value: 'display'
Return
(string) The cleaned URL after the 'clean_url' filter is applied. An empty string is returned if $url
specifies a protocol other than those in $protocols
, or if $url
contains an empty string.
More Information
Always use esc_url when sanitizing URLs (in text nodes, attribute nodes or anywhere else). Rejects URLs that do not have one of the provided whitelisted protocols (defaulting to http, https, ftp, ftps, mailto, news, irc, gopher, nntp, feed, and telnet), eliminates invalid characters and removes dangerous characters. This function encodes characters as HTML entities: use it when generating an (X)HTML or XML document. Encodes ampersands (&) and single quotes (‘) as numeric entity references (&, ').
If the URL appears to be an absolute link that does not contain a scheme, prepends http://
. Please note that relative urls (/my-url/parameter2/), as well as anchors (#myanchor) and parameter items (?myparam=yes) are also allowed and filtered as a special case, without prepending the default protocol to the filtered url.
Replaces the deprecated clean_url().
Source
File: wp-includes/formatting.php
function esc_url( $url, $protocols = null, $_context = 'display' ) { $original_url = $url; if ( '' === $url ) { return $url; } $url = str_replace( ' ', '%20', ltrim( $url ) ); $url = preg_replace( '|[^a-z0-9-~+_.?#=!&;,/:%@$\|*\'()\[\]\\x80-\\xff]|i', '', $url ); if ( '' === $url ) { return $url; } if ( 0 !== stripos( $url, 'mailto:' ) ) { $strip = array( '%0d', '%0a', '%0D', '%0A' ); $url = _deep_replace( $strip, $url ); } $url = str_replace( ';//', '://', $url ); /* * If the URL doesn't appear to contain a scheme, we presume * it needs http:// prepended (unless it's a relative link * starting with /, # or ?, or a PHP file). */ if ( strpos( $url, ':' ) === false && ! in_array( $url[0], array( '/', '#', '?' ), true ) && ! preg_match( '/^[a-z0-9-]+?\.php/i', $url ) ) { $url = 'http://' . $url; } // Replace ampersands and single quotes only when displaying. if ( 'display' === $_context ) { $url = wp_kses_normalize_entities( $url ); $url = str_replace( '&', '&', $url ); $url = str_replace( "'", ''', $url ); } if ( ( false !== strpos( $url, '[' ) ) || ( false !== strpos( $url, ']' ) ) ) { $parsed = wp_parse_url( $url ); $front = ''; if ( isset( $parsed['scheme'] ) ) { $front .= $parsed['scheme'] . '://'; } elseif ( '/' === $url[0] ) { $front .= '//'; } if ( isset( $parsed['user'] ) ) { $front .= $parsed['user']; } if ( isset( $parsed['pass'] ) ) { $front .= ':' . $parsed['pass']; } if ( isset( $parsed['user'] ) || isset( $parsed['pass'] ) ) { $front .= '@'; } if ( isset( $parsed['host'] ) ) { $front .= $parsed['host']; } if ( isset( $parsed['port'] ) ) { $front .= ':' . $parsed['port']; } $end_dirty = str_replace( $front, '', $url ); $end_clean = str_replace( array( '[', ']' ), array( '%5B', '%5D' ), $end_dirty ); $url = str_replace( $end_dirty, $end_clean, $url ); } if ( '/' === $url[0] ) { $good_protocol_url = $url; } else { if ( ! is_array( $protocols ) ) { $protocols = wp_allowed_protocols(); } $good_protocol_url = wp_kses_bad_protocol( $url, $protocols ); if ( strtolower( $good_protocol_url ) != strtolower( $url ) ) { return ''; } } /** * Filters a string cleaned and escaped for output as a URL. * * @since 2.3.0 * * @param string $good_protocol_url The cleaned URL to be returned. * @param string $original_url The URL prior to cleaning. * @param string $_context If 'display', replace ampersands and single quotes only. */ return apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Related
Uses
Uses | Description |
---|---|
wp-includes/class-pop3.php:stripos() | |
wp-includes/http.php:wp_parse_url() | A wrapper for PHP’s parse_url() function that handles consistency in the return values across PHP versions. |
wp-includes/formatting.php:_deep_replace() | Performs a deep string replace operation to ensure the values in $search are no longer present. |
wp-includes/formatting.php:clean_url | Filters a string cleaned and escaped for output as a URL. |
wp-includes/kses.php:wp_kses_normalize_entities() | Converts and fixes HTML entities. |
wp-includes/kses.php:wp_kses_bad_protocol() | Sanitizes a string and removed disallowed URL protocols. |
wp-includes/functions.php:wp_allowed_protocols() | Retrieve a list of protocols to allow in HTML attributes. |
wp-includes/plugin.php:apply_filters() | Calls the callback functions that have been added to a filter hook. |
Used By
Used By | Description |
---|---|
wp-includes/widgets/class-wp-widget-media.php:WP_Widget_Media::get_l10n_defaults() | Returns the default localized strings used by the widget. |
wp-includes/user.php:wp_list_users() | Lists all the users of the site, with several options available. |
wp-admin/includes/plugin.php:deactivated_plugins_notice() | Renders an admin notice when a plugin was deactivated during an update. |
wp-includes/https-detection.php:wp_is_local_html_output() | Checks whether a given HTML string is likely an output from this WordPress site. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_authorization_header() | Tests if the Authorization header has the expected values. |
wp-includes/sitemaps/class-wp-sitemaps.php:WP_Sitemaps::add_robots() | Adds the sitemap index to robots.txt. |
wp-includes/sitemaps/class-wp-sitemaps-renderer.php:WP_Sitemaps_Renderer::get_sitemap_index_xml() | Gets XML for a sitemap index. |
wp-includes/sitemaps/class-wp-sitemaps-renderer.php:WP_Sitemaps_Renderer::get_sitemap_xml() | Gets XML for a sitemap. |
wp-includes/sitemaps/class-wp-sitemaps-renderer.php:WP_Sitemaps_Renderer::__construct() | WP_Sitemaps_Renderer constructor. |
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php:WP_Sitemaps_Stylesheet::get_sitemap_stylesheet() | Returns the escaped XSL for all sitemaps, except index. |
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php:WP_Sitemaps_Stylesheet::get_sitemap_index_stylesheet() | Returns the escaped XSL for the index sitemaps. |
wp-admin/includes/dashboard.php:wp_dashboard_site_health() | Displays the Site Health Status widget. |
wp-admin/includes/credits.php:wp_credits_section_list() | Displays a list of contributors for a given group. |
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php:WP_Privacy_Data_Removal_Requests_List_Table::column_email() | Actions column. |
wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php:WP_Privacy_Data_Removal_Requests_List_Table::column_next_steps() | Next steps column. |
wp-admin/includes/class-wp-ms-sites-list-table.php:WP_MS_Sites_List_Table::get_views() | Gets links to filter sites by status. |
wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php:WP_Privacy_Data_Export_Requests_List_Table::column_email() | Actions column. |
wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php:WP_Privacy_Data_Export_Requests_List_Table::column_next_steps() | Displays the next steps column. |
wp-includes/functions.php:wp_get_update_php_annotation() | Returns the default annotation for the web hosting altering the “Update PHP” page URL. |
wp-admin/includes/theme.php:paused_themes_notice() | Renders an admin notice in case some themes have been paused due to errors. |
wp-admin/includes/update.php:wp_recovery_mode_nag() | Displays a notice when the user is in recovery mode. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_wordpress_version() | Tests for WordPress version and outputs it. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_plugin_version() | Test if plugins are outdated, or unnecessary. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_theme_version() | Test if themes are outdated, or unnecessary. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_php_version() | Test if the supplied PHP version is supported. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_php_extensions() | Test if required PHP modules are installed on the host. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_sql_server() | Test if the SQL server is up to date. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_dotorg_communication() | Test if the site can communicate with WordPress.org. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_is_in_debug_mode() | Test if debug information is enabled. |
wp-admin/includes/class-wp-site-health.php:WP_Site_Health::get_test_https_status() | Test if your 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:validate_plugin_requirements() | Validates the plugin requirements for WordPress version and PHP version. |
wp-includes/functions.php:wp_direct_php_update_button() | Display a button directly linking to a PHP update process. |
wp-admin/includes/dashboard.php:wp_dashboard_php_nag() | Displays the PHP update nag. |
wp-includes/script-loader.php:wp_get_script_polyfill() | Returns contents of an inline script used in appending polyfill scripts for browsers which fail the provided tests. The provided array is a mapping from a condition to verify feature support to its polyfill script handle. |
wp-admin/includes/template.php:do_block_editor_incompatible_meta_box() | Renders a “fake” meta box with an information message, shown on the block editor, when an incompatible meta box is found. |
wp-admin/includes/post.php:the_block_editor_meta_boxes() | Renders the meta boxes forms. |
wp-admin/includes/post.php:the_block_editor_meta_box_post_form_hidden_fields() | Renders the hidden form required for the meta boxes form. |
wp-includes/comment.php:wp_comments_personal_data_exporter() | Finds and exports personal data associated with an email address from the comments table. |
wp-includes/link-template.php:get_the_privacy_policy_link() | Returns the privacy policy link with formatting, when applicable. |
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/class-wp-privacy-policy-content.php:WP_Privacy_Policy_Content::policy_text_changed_notice() | Output a warning when some privacy info has changed. |
wp-admin/includes/privacy-tools.php:wp_privacy_generate_personal_data_export_group_html() | Generate a single group for the personal data export report. |
wp-admin/includes/class-wp-privacy-requests-table.php:WP_Privacy_Requests_Table::column_email() | Actions column. Overridden by children. |
wp-admin/includes/class-wp-privacy-requests-table.php:WP_Privacy_Requests_Table::get_views() | Get an associative array ( id => link ) with the list of views available on this table. |
wp-includes/widgets/class-wp-widget-custom-html.php:WP_Widget_Custom_HTML::add_help_text() | Add help text to widgets admin screen. |
wp-includes/ms-functions.php:update_network_option_new_admin_email() | Sends a confirmation request email when a change of network admin email address is attempted. |
wp-admin/press-this.php:wp_load_press_this() | |
wp-admin/includes/misc.php:wp_print_plugin_file_tree() | Outputs the formatted file list for the plugin file editor. |
wp-admin/includes/misc.php:wp_print_theme_file_tree() | Outputs the formatted file list for the theme file editor. |
wp-includes/category-template.php:get_term_parents_list() | Retrieves term parents with separator. |
wp-includes/widgets/class-wp-widget-media-audio.php:WP_Widget_Media_Audio::__construct() | Constructor. |
wp-includes/widgets/class-wp-widget-media-video.php:WP_Widget_Media_Video::__construct() | Constructor. |
wp-includes/widgets/class-wp-widget-media-image.php:WP_Widget_Media_Image::render_media() | Render the media on the frontend. |
wp-includes/widgets/class-wp-widget-media-image.php:WP_Widget_Media_Image::__construct() | Constructor. |
wp-admin/includes/dashboard.php:wp_print_community_events_markup() | Prints the markup for the Community Events section of the Events and News Dashboard widget. |
wp-admin/includes/dashboard.php:wp_dashboard_events_news() | Renders the Events and News dashboard widget. |
wp-includes/theme.php:the_header_video_url() | Displays header video URL. |
wp-includes/general-template.php:wp_resource_hints() | Prints resource hints to browsers for pre-fetching, pre-rendering and pre-connecting to web sites. |
wp-admin/includes/ms.php:network_edit_site_nav() | Outputs the HTML for a network’s “Edit Site” tabular interface. |
wp-includes/embed.php:the_embed_site_title() | Prints the necessary markup for the site title in an embed template. |
wp-includes/general-template.php:get_custom_logo() | Returns a custom logo, linked to home unless the theme supports removing the link on the home page. |
wp-includes/customize/class-wp-customize-site-icon-control.php:WP_Customize_Site_Icon_Control::content_template() | Renders a JS template for the content of the site icon control. |
wp-includes/rest-api.php:rest_output_rsd() | Adds the REST API URL to the WP RSD endpoint. |
wp-includes/rest-api.php:rest_output_link_wp_head() | Outputs the REST API link tag into page header. |
wp-includes/embed.php:wp_filter_oembed_result() | Filters the given oEmbed HTML. |
wp-includes/embed.php:wp_embed_excerpt_more() | Filters the string in the ‘more’ link displayed after a trimmed excerpt. |
wp-includes/embed.php:wp_oembed_add_discovery_links() | Adds oEmbed discovery links in the head element of the website. |
wp-includes/embed.php:get_post_embed_html() | Retrieves the embed code for a specific post. |
wp-includes/author-template.php:get_the_author_posts_link() | Retrieves an HTML link to the author page of the current post’s author. |
wp-includes/post-thumbnail-template.php:the_post_thumbnail_url() | Displays the post thumbnail URL. |
wp-admin/includes/class-wp-posts-list-table.php:WP_Posts_List_Table::get_edit_link() | Helper to create links to edit.php with params. |
wp-includes/general-template.php:wp_site_icon() | Display site icon meta tags. |
wp-includes/general-template.php:site_icon_url() | Displays the Site Icon URL. |
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-ms-themes-list-table.php:WP_MS_Themes_List_Table::column_name() | Handles the name column output. |
wp-admin/includes/class-wp-comments-list-table.php:WP_Comments_List_Table::handle_row_actions() | Generate and display row actions links. |
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-ms-sites-list-table.php:WP_MS_Sites_List_Table::column_blogname() | Handles the site name column output. |
wp-admin/includes/class-wp-ms-sites-list-table.php:WP_MS_Sites_List_Table::column_users() | Handles the users column output. |
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-ms-users-list-table.php:WP_MS_Users_List_Table::handle_row_actions() | Generates and displays row action links. |
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::column_email() | Handles the email column output. |
wp-admin/includes/class-wp-ms-users-list-table.php:WP_MS_Users_List_Table::column_blogs() | Handles the sites column output. |
wp-admin/includes/class-wp-media-list-table.php:WP_Media_List_Table::column_author() | Handles the author column output. |
wp-admin/includes/class-wp-media-list-table.php:WP_Media_List_Table::column_default() | Handles output for the default column. |
wp-includes/customize/class-wp-customize-theme-control.php:WP_Customize_Theme_Control::content_template() | Render a JS template for theme display. |
wp-admin/includes/theme.php:customize_themes_print_templates() | Prints JS templates for the theme-browsing UI in the Customizer. |
wp-admin/includes/misc.php:wp_admin_canonical_url() | Removes single-use URL parameters and create canonical link based on new URL. |
wp-includes/class-wp-customize-manager.php:WP_Customize_Manager::remove_panel() | Removes a customize panel. |
wp-login.php:login_footer() | Outputs the footer for the login page. |
wp-includes/user.php:retrieve_password() | Handles sending a password retrieval email to a user. |
wp-login.php:login_header() | Output the login page header. |
wp-signup.php:signup_another_blog() | Shows a form for returning users to sign up for another site. |
wp-signup.php:confirm_another_blog_signup() | Shows a message confirming that the new site has been created. |
wp-admin/includes/network.php:network_step1() | Prints step 1 for Network installation process. |
wp-admin/includes/network.php:network_step2() | Prints step 2 for Network installation process. |
wp-admin/includes/theme.php:wp_prepare_themes_for_js() | Prepares themes for JavaScript. |
wp-admin/includes/theme.php:get_theme_update_available() | Retrieves the update link if there is a theme update available. |
wp-admin/includes/class-wp-screen.php:WP_Screen::render_screen_meta() | Render the screen’s help section. |
wp-admin/includes/class-wp-plugins-list-table.php:WP_Plugins_List_Table::single_row() | |
wp-admin/includes/class-wp-plugins-list-table.php:WP_Plugins_List_Table::no_items() | |
wp-admin/includes/class-theme-upgrader-skin.php:Theme_Upgrader_Skin::after() | Action to perform following a single theme update. |
wp-admin/includes/class-theme-installer-skin.php:Theme_Installer_Skin::after() | Action to perform following a single theme install. |
wp-admin/includes/class-wp-list-table.php:WP_List_Table::view_switcher() | Displays a view switcher. |
wp-admin/includes/class-wp-list-table.php:WP_List_Table::comments_bubble() | Displays a comment count bubble. |
wp-admin/includes/class-wp-list-table.php:WP_List_Table::pagination() | Displays the pagination. |
wp-admin/includes/class-wp-list-table.php:WP_List_Table::print_column_headers() | Prints column headers, accounting for hidden and sortable columns. |
wp-admin/includes/ms.php:_access_denied_splash() | Displays an access denied message when a user tries to view a site’s dashboard they do not have access to. |
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:choose_primary_blog() | Handles the display of choosing a user’s primary site. |
wp-admin/includes/misc.php:update_option_new_admin_email() | Sends a confirmation request email when a change of site admin email address is attempted. |
wp-includes/user.php:send_confirmation_on_profile_email() | Sends a confirmation request email when a change of user email address is attempted. |
wp-admin/includes/image-edit.php:wp_image_editor() | Loads the WP image-editing interface. |
wp-admin/includes/class-wp-ms-themes-list-table.php:WP_MS_Themes_List_Table::get_views() | |
wp-admin/includes/misc.php:admin_color_scheme_picker() | Displays the default admin color scheme picker (Used in user-edit.php). |
wp-admin/includes/class-wp-theme-install-list-table.php:WP_Theme_Install_List_Table::install_theme_info() | Prints the info for a theme (to be used in the theme installer modal). |
wp-admin/includes/class-wp-theme-install-list-table.php:WP_Theme_Install_List_Table::single_row() | Prints a theme from the WordPress.org API. |
wp-admin/includes/class-wp-theme-install-list-table.php:WP_Theme_Install_List_Table::theme_installer_single() | Prints the wrapper for the theme installer with a provided theme’s data. |
wp-admin/includes/update.php:update_nag() | |
wp-admin/includes/update.php:wp_plugin_update_row() | Displays update information for a plugin. |
wp-admin/includes/update.php:wp_theme_update_row() | Displays update information for a theme. |
wp-admin/includes/dashboard.php:wp_welcome_panel() | Displays a welcome panel to introduce users to WordPress. |
wp-admin/includes/plugin-install.php:install_dashboard() | Displays the Featured tab of Add Plugins screen. |
wp-admin/includes/plugin-install.php:install_plugin_information() | Displays plugin information in dialog box form. |
wp-admin/includes/dashboard.php:wp_dashboard_quota() | Displays file upload quota on dashboard. |
wp-admin/includes/dashboard.php:wp_dashboard_browser_nag() | Displays the browser update nag. |
wp-admin/includes/deprecated.php:wp_dashboard_plugins_output() | Display plugins text for the WordPress news widget. |
wp-admin/includes/dashboard.php:wp_add_dashboard_widget() | Adds a new dashboard widget. |
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/dashboard.php:wp_dashboard_recent_drafts() | Show recent drafts of the user on the dashboard. |
wp-admin/includes/dashboard.php:_wp_dashboard_recent_comments_row() | Outputs a row for the Recent Comments widget. |
wp-admin/includes/upgrade.php:wp_install_defaults() | Creates the initial content for a newly-installed site. |
wp-admin/includes/plugin.php:menu_page_url() | Gets the URL to access a particular menu page based on the slug it was registered with. |
wp-admin/includes/plugin.php:_get_plugin_data_markup_translate() | Sanitizes plugin data, optionally adds markup, optionally translates. |
wp-admin/includes/class-wp-plugin-install-list-table.php:WP_Plugin_Install_List_Table::display_rows() | |
wp-admin/includes/template.php:wp_import_upload_form() | Outputs the form used by the importers to accept the data to be imported |
wp-admin/includes/class-wp-themes-list-table.php:WP_Themes_List_Table::display_rows() | |
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-users-list-table.php:WP_Users_List_Table::get_views() | Return an associative array listing all the views that can be used with this table. |
wp-admin/includes/media.php:media_upload_type_form() | Outputs the legacy media upload form for a given media type. |
wp-admin/includes/media.php:media_upload_type_url_form() | Outputs the legacy media upload form for external media. |
wp-admin/includes/media.php:media_upload_gallery_form() | Adds gallery form to upload iframe. |
wp-admin/includes/media.php:media_upload_library_form() | Outputs the legacy media upload form for the media library. |
wp-admin/includes/media.php:media_upload_max_image_resize() | Displays the checkbox to scale images. |
wp-admin/includes/media.php:edit_form_image_editor() | Displays the image and editor in the post editor |
wp-admin/includes/media.php:attachment_submitbox_metadata() | Displays non-editable attachment metadata in the publish meta box. |
wp-admin/includes/media.php:wp_media_upload_handler() | Handles the process of uploading media. |
wp-admin/includes/media.php:the_media_upload_tabs() | Outputs the legacy media upload tabs UI. |
wp-admin/includes/post.php:get_sample_permalink_html() | Returns the HTML of the sample permalink slug editor. |
wp-admin/includes/post.php:_wp_post_thumbnail_html() | Returns HTML for the post thumbnail meta box. |
wp-admin/includes/post.php:_admin_notice_post_locked() | Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post. |
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_send_link_to_editor() | Ajax handler for sending a link to the editor. |
wp-admin/includes/update-core.php:update_core() | Upgrades the core of WordPress. |
wp-admin/includes/bookmark.php:wp_link_manager_disabled_message() | Outputs the ‘disabled’ message for the WordPress Link Manager. |
wp-admin/includes/meta-boxes.php:post_submit_meta_box() | Displays post submit form fields. |
wp-admin/includes/bookmark.php:edit_link() | Updates or inserts a link using values provided in $_POST. |
wp-admin/includes/bookmark.php:get_default_link_to_edit() | Retrieves the default link for editing. |
wp-admin/includes/class-wp-media-list-table.php:WP_Media_List_Table::_get_row_actions() | |
wp-admin/includes/class-wp-comments-list-table.php:WP_Comments_List_Table::column_author() | |
wp-admin/includes/class-wp-comments-list-table.php:WP_Comments_List_Table::column_date() | |
wp-admin/includes/class-wp-comments-list-table.php:WP_Comments_List_Table::column_comment() | |
wp-admin/includes/class-wp-terms-list-table.php:WP_Terms_List_Table::column_name() | |
wp-admin/includes/class-wp-terms-list-table.php:WP_Terms_List_Table::column_posts() | |
wp-admin/includes/class-walker-nav-menu-edit.php:Walker_Nav_Menu_Edit::start_el() | Start the element output. |
wp-admin/includes/nav-menu.php:wp_nav_menu_item_post_type_meta_box() | Displays a meta box for a post type menu item. |
wp-admin/includes/nav-menu.php:wp_nav_menu_item_taxonomy_meta_box() | Displays a meta box for a taxonomy menu item. |
wp-admin/includes/file.php:request_filesystem_credentials() | Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem. |
wp-admin/includes/widgets.php:wp_widget_control() | Meta widget used to display the control form for a widget. |
wp-admin/includes/comment.php:get_comment_to_edit() | Returns a WP_Comment object based on comment ID. |
wp-admin/includes/credits.php:_wp_credits_add_profile_link() | Retrieve the link to a contributor’s WordPress.org profile page. |
wp-admin/includes/credits.php:_wp_credits_build_object_link() | Retrieve the link to an external library used in WordPress. |
wp-admin/includes/class-custom-image-header.php:Custom_Image_Header::step_1() | Display first step of custom header image page. |
wp-admin/includes/class-custom-image-header.php:Custom_Image_Header::step_2() | Display second step of custom header image page. |
wp-admin/includes/ms.php:confirm_delete_users() | |
wp-admin/update-core.php:list_core_update() | Lists available core updates. |
wp-admin/update-core.php:core_upgrade_preamble() | Display upgrade WordPress for downloading latest or upgrading automatically form. |
wp-admin/update-core.php:list_plugin_updates() | Display the upgrade plugins form. |
wp-admin/update-core.php:list_theme_updates() | Display the upgrade themes form. |
wp-admin/update-core.php:list_translation_updates() | Display the update translations form. |
wp-admin/update-core.php:do_core_upgrade() | Upgrade WordPress core display. |
wp-admin/includes/class-custom-background.php:Custom_Background::admin_page() | Display the custom background page. |
wp-admin/menu-header.php:_wp_menu_output() | Display menu. |
wp-includes/class-wp-customize-manager.php:WP_Customize_Manager::register_controls() | Registers some default controls. |
wp-includes/class.wp-styles.php:WP_Styles::_css_href() | Generates an enqueued style’s fully-qualified URL. |
wp-includes/class-walker-category.php:Walker_Category::start_el() | Starts the element output. |
wp-includes/category-template.php:get_the_term_list() | Retrieves a post’s terms as a list with specified format. |
wp-includes/category-template.php:wp_generate_tag_cloud() | Generates a tag cloud (heatmap) from provided data. |
wp-includes/theme.php:wp_customize_url() | Returns a URL to load the Customizer. |
wp-includes/category-template.php:get_the_category_list() | Retrieves category list for a post in either HTML list or custom format. |
wp-includes/category-template.php:wp_list_categories() | Displays or retrieves the HTML list of categories. |
wp-includes/theme.php:_wp_customize_loader_settings() | Adds settings for the customize-loader script. |
wp-includes/theme.php:header_image() | Displays header image URL. |
wp-includes/formatting.php:esc_url_raw() | Performs esc_url() for database or redirect usage. |
wp-includes/formatting.php:_make_url_clickable_cb() | Callback to convert URI match to HTML A element. |
wp-includes/formatting.php:_make_web_ftp_clickable_cb() | Callback to convert URL match to HTML A element. |
wp-includes/formatting.php:translate_smiley() | Converts one smiley code to the icon graphic file equivalent. |
wp-includes/pluggable.php:get_avatar() | Retrieve the avatar |
wp-includes/general-template.php:paginate_links() | Retrieves paginated links for archive post pages. |
wp-includes/general-template.php:wp_admin_css() | Enqueues or directly prints a stylesheet link to the specified CSS file. |
wp-includes/general-template.php:feed_links() | Display the links to the general feeds. |
wp-includes/general-template.php:feed_links_extra() | Display the links to the extra feeds such as category feeds. |
wp-includes/general-template.php:rsd_link() | Display the link to the Really Simple Discovery service endpoint. |
wp-includes/general-template.php:get_archives_link() | Retrieve archive link content based on predefined or custom code. |
wp-includes/general-template.php:wp_loginout() | Display the Log In/Out link. |
wp-includes/general-template.php:wp_login_form() | Provides a simple login form for use anywhere within WordPress. |
wp-includes/general-template.php:wp_register() | Display the Registration or Admin link. |
wp-includes/general-template.php:get_search_form() | Display search form. |
wp-includes/deprecated.php:get_index_rel_link() | Get site index relational link. |
wp-includes/deprecated.php:clean_url() | Checks and cleans a URL. |
wp-includes/deprecated.php:comments_rss() | Return link to the post RSS feed. |
wp-includes/deprecated.php:get_links() | Gets the links associated with category by ID. |
wp-includes/class-wp-theme.php:WP_Theme::markup_header() | Marks up a theme header. |
wp-includes/functions.php:wp_auth_check_html() | Output the HTML that shows the wp-login dialog when the user is no longer logged in. |
wp-includes/functions.php:wp_nonce_ays() | Display “Are You Sure” message to confirm the action being taken. |
wp-includes/functions.php:_default_wp_die_handler() | Kills WordPress execution and displays HTML page with an error message. |
wp-includes/widgets/class-wp-widget-rss.php:WP_Widget_RSS::widget() | Outputs the content for the current RSS widget instance. |
wp-includes/widgets/class-wp-widget-recent-comments.php:WP_Widget_Recent_Comments::widget() | Outputs the content for the current Recent Comments widget instance. |
wp-includes/widgets/class-wp-widget-categories.php:WP_Widget_Categories::widget() | Outputs the content for the current Categories widget instance. |
wp-includes/widgets/class-wp-widget-meta.php:WP_Widget_Meta::widget() | Outputs the content for the current Meta widget instance. |
wp-includes/widgets.php:wp_widget_rss_output() | Display the RSS entries in a list. |
wp-includes/widgets.php:wp_widget_rss_form() | Display RSS widget options form. |
wp-includes/widgets.php:wp_widget_rss_process() | Process RSS feed widget data and optionally retrieve feed items. |
wp-includes/class-wp-embed.php:WP_Embed::maybe_make_link() | Conditionally makes a hyperlink based on an internal class variable. |
wp-includes/class-wp-embed.php:WP_Embed::maybe_run_ajax_cache() | If a post/page was saved, then output JavaScript to make an Ajax request that will call WP_Embed::cache_oembed(). |
wp-includes/link-template.php:rel_canonical() | Outputs rel=canonical for singular queries. |
wp-includes/link-template.php:wp_shortlink_wp_head() | Injects rel=shortlink into the head if a shortlink is defined for the current page. |
wp-includes/link-template.php:the_shortlink() | Displays the shortlink for a post. |
wp-includes/link-template.php:get_next_comments_link() | Retrieves the link to the next comments page. |
wp-includes/link-template.php:get_previous_comments_link() | Retrieves the link to the previous comments page. |
wp-includes/link-template.php:get_pagenum_link() | Retrieves the link for a page number. |
wp-includes/link-template.php:next_posts() | Displays or retrieves the next posts page link. |
wp-includes/link-template.php:previous_posts() | Displays or retrieves the previous posts page link. |
wp-includes/link-template.php:edit_post_link() | Displays the edit post link for post. |
wp-includes/link-template.php:edit_comment_link() | Displays the edit comment link with formatting. |
wp-includes/link-template.php:edit_bookmark_link() | Displays the edit bookmark link anchor content. |
wp-includes/link-template.php:the_feed_link() | Displays the permalink for the feed type. |
wp-includes/link-template.php:post_comments_feed_link() | Displays the comment feed link for a post. |
wp-includes/class-wp-admin-bar.php:WP_Admin_Bar::_render() | |
wp-includes/class-wp-admin-bar.php:WP_Admin_Bar::_render_item() | |
wp-includes/link-template.php:the_permalink() | Displays the permalink for the current post. |
wp-includes/update.php:wp_version_check() | Check WordPress version against the newest version. |
wp-includes/class-wp-oembed.php:WP_oEmbed::data2html() | Converts a data object from WP_oEmbed::fetch() and returns the HTML. |
wp-includes/admin-bar.php:wp_admin_bar_my_sites_menu() | Adds the “My Sites/[Site Name]” menu and all submenus. |
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_search_menu() | Adds search form. |
wp-includes/feed.php:rss_enclosure() | Display the rss enclosure for the current post. |
wp-includes/feed.php:atom_enclosure() | Display the atom enclosure for the current post. |
wp-includes/feed.php:self_link() | Display the link for the currently displayed feed in a XSS safe way. |
wp-includes/feed.php:the_permalink_rss() | Display the permalink to the post for use in feeds. |
wp-includes/feed.php:comments_link_feed() | Outputs the link to the comments for the current post in an xml safe way |
wp-includes/feed.php:comment_guid() | Display the feed GUID for the current comment. |
wp-includes/feed.php:comment_link() | Display the link to the comments. |
wp-includes/user.php:sanitize_user_field() | Sanitizes user field based on context. |
wp-includes/bookmark-template.php:_walk_bookmarks() | The formatted output of a list of bookmarks. |
wp-includes/class-walker-nav-menu.php:Walker_Nav_Menu::start_el() | Starts the element output. |
wp-includes/class-walker-page.php:Walker_Page::start_el() | Outputs the beginning of the current element in the tree. |
wp-includes/post-template.php:wp_get_attachment_link() | Retrieves an attachment page link using an image or icon, if possible. |
wp-includes/post-template.php:get_the_password_form() | Retrieves protected post password form content. |
wp-includes/post-template.php:_wp_link_page() | Helper function for wp_link_pages(). |
wp-includes/embed.php:wp_embed_handler_audio() | Audio embed handler callback. |
wp-includes/embed.php:wp_embed_handler_video() | Video embed handler callback. |
wp-includes/media.php:wp_video_shortcode() | Builds the Video shortcode output. |
wp-includes/media.php:wp_mediaelement_fallback() | Provides a No-JS Flash fallback as a last resort for audio / video. |
wp-includes/media.php:wp_audio_shortcode() | Builds the Audio shortcode output. |
wp-includes/media.php:get_image_tag() | Gets an img tag for an image attachment, scaling it down if requested. |
wp-includes/ms-functions.php:newblog_notify_siteadmin() | Notifies the network admin that a new site has been activated. |
wp-includes/ms-functions.php:newuser_notify_siteadmin() | Notifies the network admin that a new user has been activated. |
wp-includes/ms-functions.php:wpmu_signup_blog_notification() | Sends a confirmation request email to a user when they sign up for a new site. The new site will not become active until the confirmation link is clicked. |
wp-includes/ms-deprecated.php:get_most_active_blogs() | Deprecated functionality to retrieve a list of the most active sites. |
wp-includes/class.wp-scripts.php:WP_Scripts::do_item() | Processes a script dependency. |
wp-includes/author-template.php:get_the_author_link() | Retrieves either author’s link or author’s name. |
wp-includes/author-template.php:wp_list_authors() | Lists all the authors of the site, with several options available. |
wp-includes/ms-blogs.php:get_blogaddress_by_id() | Get a full blog URL, given a blog ID. |
wp-includes/ms-blogs.php:get_blogaddress_by_name() | Get a full blog URL, given a blog name. |
wp-includes/rss.php:wp_rss() | Display all RSS items in a HTML ordered list. |
wp-includes/class-walker-comment.php:Walker_Comment::comment() | Outputs a single comment. |
wp-includes/class-walker-comment.php:Walker_Comment::html5_comment() | Outputs a comment in the HTML5 format. |
wp-includes/comment-template.php:comment_form() | Outputs a complete commenting form for use within a template. |
wp-includes/comment-template.php:comments_template() | Loads the comment template specified in $file. |
wp-includes/comment-template.php:get_comment_reply_link() | Retrieves HTML content for reply to comment link. |
wp-includes/comment-template.php:comments_link() | Displays the link to the current post comments. |
wp-includes/comment-template.php:get_comment_text() | Retrieves the text of the current comment. |
wp-includes/comment-template.php:get_comment_author_email_link() | Returns the HTML email link to the author of the current comment. |
wp-includes/comment-template.php:get_comment_author_url() | Retrieves the URL of the author of the current comment, not linked. |
wp-includes/script-loader.php:wp_default_scripts() | Registers all WordPress scripts. |
wp-includes/comment.php:wp_set_comment_cookies() | Sets the cookies used to store an unauthenticated commentator’s identity. Typically used to recall previous comments by this commentator that are still held in moderation. |
wp-includes/media-template.php:wp_print_media_templates() | Prints the templates used in the media manager. |
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |