Browse: Home / Classes / LearnDash_Permalinks /


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

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

Description #

Parameters #


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

Default value: ''


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

Default value: null


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

Default value: false


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

Default value: false

Source #

File: includes/class-ld-permalinks.php