apply_filters( 'post_link', string $permalink, WP_Post $post, bool $leavename )

Filters the permalink for a post.

Description Description

Only applies to posts with post_type of ‘post’.

Parameters Parameters


(string) The post's permalink.


(WP_Post) The post in question.


(bool) Whether to keep the post name.

Top ↑

Source Source

File: wp-includes/link-template.php

View on Trac

Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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