Filters the display of the permalink for the current post.
$permalinkstring$postint|WP_Postwp-content/themes/twentyeleven/functions.php:692twentyeleven_get_first_url()wp-content/themes/twentyfifteen/inc/template-tags.php:250twentyfifteen_get_link_url()wp-content/themes/twentythirteen/functions.php:743twentythirteen_get_link_url()wp-includes/comment-template.php:2625comment_form()wp-includes/comment-template.php:2636comment_form()wp-includes/link-template.php:27the_permalink() * @since 1.5.0 * @since 4.4.0 Added the `$post` parameter. * * @param string $permalink The permalink for the current post. * @param int|WP_Post $post Post ID, WP_Post object, or 0. Default 0. */ echo esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) );} /** * Retrieves a trailing-slashed string if the site is set for adding trailing slashes. * * Conditionally adds a trailing slash if the permalink structure has a trailingIntroduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.