post_type_link – filter

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

Parameters

.
( 3.0.0 ) . .
( string ) $post_link The post’s permalink. . . .
$post
( WP_Post ) The post in question. . . .
( bool ) $leavename Whether to keep the post name. . . .
( bool ) $sample Is it a sample permalink. . . .
API Letters: ,,

Implementers