WordPress Hooks Explorer

Listing all hooks extracted WordPress Core

Details about post_link

Back to home


Filename Hook Type Line Number PHP Doc
wp-includes/link-template.php apply_filters 304 /**
* 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.

Hook Parameters

Parameter Type Name Description
WP_Term $cat The category to use in the permalink.
array $cats Array of all categories (WP_Term objects) associated with the post.
WP_Post $post The post in question.