Link (URL) (tag)
| admin_url() | Retrieves the URL to the admin area for the current site. Takes into account protocols (http and https). |
| attachment_url_to_postid() | Trying to get the attachment ID (image from the media library) by the specified attachment URL. |
| build_query() | Collects a query string from the provided simple/associative array. |
| comment_link() | Outputs the comment link (URL). |
| content_url() | Gets the URL to the content directory (folder wp_content) without a slash (/) at the end. Considers the protocol (https). Takes into account sub-sites if multisite is used. |
| get_comments_link() | Gets the link (URL) to all comments for the current post. |
| get_comments_pagenum_link() | Gets the link to the specified comment pagination page of the post. |
| get_edit_post_link() | Gets the link (URL) to edit post in the admin panel. |
| get_edit_term_link() | Gets the URL for editing the specified taxonomy term. |
| get_home_url() | Gets the URL of the site's main page (without / at the end). You can specify the site ID of the network. Considers the protocol (http, https). |
| get_next_comments_link() | Gets a link (A tag) to the next comments page. Should be used on the post page. |
| get_next_posts_page_link() | Gets the URL for the list of previously published posts within the current query (pagination link). |
| get_page_link() | Gets the URL (link) of a permanent WordPress page (post type page). |
| get_post_embed_url() | Gets the URL to be used in an iframe for embedding the specified post on another site (oEmbed format). |
| get_post_permalink() | Gets the URL (permalink) of a custom post type. |
| get_post_type_archive_link() | Returns the URL (permalink) to the archive page of a custom post type. |
| get_previous_posts_page_link() | Gets the URL for the list of posts published later than the current ones (pagination link). |
| get_privacy_policy_url() | Returns the URL of the privacy policy page. |
| get_rest_url() | Gets the URL of the REST API endpoint. Allows specifying the site of the network. |
| get_search_link() | Gets the search page URL considering the current/specified search query. |
| get_stylesheet_directory_uri() | Gets the URL of the current theme (child if it is used or parent). Does not contain / at the end. Considers SSL. |
| get_stylesheet_uri() | Retrieves the URI of the current theme stylesheet file (style.css). |
| get_theme_root_uri() | Gets the URL of the themes directory. The URL does not have a trailing slash. |
| get_year_link() | Gets the URL (link) to the archive of posts for the specified year. |
| home_url() | Gets the URL of the site's main page (without the trailing slash /). Considers the protocol (http, https). |
| includes_url() | Retrieves the URL to the wp-includes directory with the appropriate protocol: 'https' or 'http'. |
| network_admin_url() | Retrieves the URL to the admin panel for the network — many sites management (not for a single blog of the network): |
| network_home_url() | Gets the URL of the homepage of the main site in the current network of sites (for MU installation). |
| plugin_dir_url() | Gets the URL of the folder (with a slash at the end) where the specified plugin file is located. |
| plugins_url() | Gets the URL of the plugins or mu (must use) plugins folder (without a trailing slash). |
| site_url() | Gets the site URL (where the WordPress core is installed) with the corresponding protocol (https, if the is_ssl condition is triggered). |
| strip_fragment_from_url() | Removes the fragment (anchor, hash, #fragment) from the URL. The URL must be passed with the protocol. |
| the_post_thumbnail_url() | Outputs the URL of the current post's thumbnail. If there is no thumbnail, it returns NULL (nothing will be output). Used in the WordPress loop. |
| url_to_postid() | Gets post, page ID by transmitted URL. Examine a URL and try to determine the post ID it represents. |
| wc_get_cart_url() | Returns a link to the Cart page. |
| wp_extract_urls() | Uses a regular expression to "extract" all links (URLs) from the provided text. |
| wp_get_attachment_image_url() | Gets the URL of the attachment image by the provided image ID. You can also specify the size of the image for which you need to get the URL. |
| wp_get_upload_dir() | Retrieves data about the uploads folder (upload) as an array of parameters. |
| wp_make_link_relative() | Converts an absolute URL to a relative path. Removes the protocol (http/https) and domain, leaving / at the beginning. |
| wp_parse_url() | Parses a URL and returns its components. A wrapper for PHP's parse_url() function that handles consistency in the return values across PHP versions. |
| wp_registration_url() | Gets the URL for the registration page: wp-login.php?action=register. |
| wp_upload_dir() | Gets upload directory data: path, URL. |
| wp_validate_redirect() | Checks the specified URL for the possibility of using it for redirection. |