post_type_link

Advertisement

Summery Summery

Filters the permalink for a post of a custom post type.

Syntax Syntax

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

Parameters Parameters

$post_link

(string) The post's permalink.

$post

(WP_Post) The post in question.

$leavename

(bool) Whether to keep the post name.

$sample

(bool) Is it a sample permalink.

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.