post_link

Advertisement

Summery Summery

Filters the permalink for a post.

Syntax Syntax

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

Description Description

Only applies to posts with post_type of ‘post’.

Parameters Parameters

$permalink

The post's permalink.

$post

The post in question.

$leavename

Whether to keep the post name.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply