post_type_link

最后更新于:2021-11-27 17:53:22

apply_filters( ‘post_type_link’, string $post_link, GC_Post $post, bool $leavename, bool $sample )

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

参数

$post_link

(string)
The post’s permalink.

$post

(GC_Post)
The post in question.

$leavename

(bool)
Whether to keep the post name.

$sample

(bool)
Is it a sample permalink.

源文件

文件: gc-includes/link-template.php

View on Trac