pre_post_link

Advertisement

Summery Summery

Filters the permalink structure for a post before token replacement occurs.

Syntax Syntax

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

Description Description

Only applies to posts with post_type of ‘post’.

Parameters Parameters

$permalink

(string) The site's permalink structure.

$post

(WP_Post) The post in question.

$leavename

(bool) Whether to keep the post name.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.