WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about post_type_link

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/link-template.php apply_filters 371 /**
* Filters the permalink for a post of a custom post type.
*
* @since 3.0.0
*
* @param string $post_link The post's permalink.
* @param WP_Post $post The post in question.
* @param bool $leavename Whether to keep the post name.
* @param bool $sample Is it a sample permalink.
*/

Hook Parameters

Parameter Type Name Description
string $post_link The post's permalink.
WP_Post $post The post in question.
bool $leavename Whether to keep the post name.
bool $sample Is it a sample permalink.