302<?php303 * @since 1.5.0304 *305 * @param string $permalink The post's permalink.306 * @param WP_Post $post The post in question.307 * @param bool $leavename Whether to keep the post name.308 */309 return apply_filters( 'post_link', $permalink, $post, $leavename );310}311312/**313 * Retrieves the permalink for a post of a custom post type.314 *315 * @since 3.0.0
History
Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.