Browse: Home / Classes / LearnDash_Permalinks /

LearnDash_Permalinks::get_sample_permalink

LearnDash_Permalinks::get_sample_permalink( array $permalink = '',  int $post_id,  string $title = '',  string $name = '',  object $post = '' )

Hook into the admin post editor Permalink display. We override the LD post items so they include the full nested URL


Description #


Parameters #

$permalink

(array) (Optional) Array containing the sample permalink with placeholder for the post name, and the post name.

Default value: ''

$post_id

(int) (Required) Post ID.

$title

(string) (Optional) Post title.

Default value: ''

$name

(string) (Optional) Post name (slug).

Default value: ''

$post

(object) (Optional) (WP_Post) Post object.

Default value: ''


Source #

File: includes/class-ld-permalinks.php


Changelog #

Changelog
Version Description
2.5.0 Introduced.