WordPress at a glance
filter is not described

post_type_link filter-hook . WP 3.0.0

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


add_filter( 'post_type_link', 'filter_function_name_4642', 10, 4 );
function filter_function_name_4642( $post_link, $post, $leavename, $sample ){
	// filter...

	return $post_link;
The post's permalink.
The post in question.
Whether to keep the post name.
Is it a sample permalink.

Where the hook is called

wp-includes/link-template.php 313
return apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample );

Where the hook is used (in WP core)

Использование не найдено.