Filters the permalink for a post of a custom post type.
$post_linkstring$postWP_Post$leavenamebool$sampleboolwp-includes/link-template.php:375get_post_permalink()<?php * * @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. */ return apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample );} /** * Retrieves the permalink for the current page or page ID. * * Respects page_on_front. Use this one.Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.