Archive | /wp-includes/link-template.php RSS feed for this section

wp_get_shortlink

Return a shortlink for a post, page, attachment, or blog.This function exists to provide a shortlink tag that all themes and plugins can target. A plugin must hook in to provide the actual shortlinks. Default shortlink support is limited to providing ?p= style links for posts. Plugins can short-circuit this function via the pre_get_shortlink filter or filter the output via the get_shortlink filter.

3749

Continue reading

user_trailingslashit

Retrieve trailing slash string, if blog set for adding trailing slashes.Conditionally adds a trailing slash if the permalink structure has a trailing slash, strips the trailing slash if not. The string is passed through the ‘user_trailingslashit’ filter. Will remove trailing slash from string, if blog is not set to have them.

3303

Continue reading