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

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

Description Description

Parameters Parameters


(string) The post's permalink.


(WP_Post) The post in question.


(bool) Whether to keep the post name.


(bool) Is it a sample permalink.

Top ↑

Source Source

File: wp-includes/link-template.php

View on Trac

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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