Filter hook 'post_link'

in WP Core File wp-includes/link-template.php at line 308

Description

Filters the permalink for a post. Only applies to posts with post_type of 'post'.

Occurrences

Filename Line Number
wp-includes/link-template.php 308

Parameters

Type Name Description
string $permalink The post's permalink.
WP_Post $post The post in question.
bool $leavename Whether to keep the post name.

PHP Doc

/**
	 * Filters the permalink for a post.
	 *
	 * Only applies to posts with post_type of 'post'.
	 *
	 * @since 1.5.0
	 *
	 * @param string  $permalink The post's permalink.
	 * @param WP_Post $post      The post in question.
	 * @param bool    $leavename Whether to keep the post name.
	 */