WordPress at a glance
filter is not described

pre_post_link filter-hook . WP 3.0.0

Filters the permalink structure for a post before token replacement occurs.

Only applies to posts with post_type of 'post'.


add_filter( 'pre_post_link', 'filter_function_name_2516', 10, 3 );
function filter_function_name_2516( $permalink, $post, $leavename ){
	// filter...

	return $permalink;
The site's permalink structure.
The post in question.
Whether to keep the post name.

Where the hook is called

wp-includes/link-template.php 166
$permalink = apply_filters( 'pre_post_link', $permalink, $post, $leavename );

Where the hook is used (in WP core)

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