apply_filters( 'the_permalink', string $permalink, int|WP_Post $post )

Filters the display of the permalink for the current post.


Parameters Parameters

$permalink

(string) The permalink for the current post.

$post

(int|WP_Post) Post ID, WP_Post object, or 0. Default 0.



Top ↑

Source Source

File: wp-includes/link-template.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Added the $post parameter.
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.