wphooks.info - post_type_link

post_type_link

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/link-template.php:
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
	/**
	 * 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.
	 */
	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.
 *
 * @since 1.5.0
 *