LearnDash_Permalinks::post_type_link

LearnDash_Permalinks::post_type_link( strng $post_link = '',  Object $post = null,  bool $leavename = false,  bool $sample = false )

This second filter will correct calls to the WordPress get_permalink() function to use the new structure


Description #


Parameters #

$post_link

(strng) (Optional) The post's permalink.

Default value: ''

$post

(Object) (Optional) The WP_Post post in question.

Default value: null

$leavename

(bool) (Optional) Whether to keep the post name.

Default value: false

$sample

(bool) (Optional) Is it a sample permalink.

Default value: false


Source #

File: includes/class-ld-permalinks.php