apply_filters( ‘get_sample_permalink’, array $permalink, int $post_id, string $title, string $name, WP_Post $post )

In this article

Filters the sample permalink.

Parameters

$permalinkarray
Array containing the sample permalink with placeholder for the post name, and the post name.
  • 0 string
    The permalink with placeholder for the post name.
  • 1 string
    The post name.
$post_idint
Post ID.
$titlestring
Post title.
$namestring
Post name (slug).
$postWP_Post
Post object.

Source

* @param array   $permalink {

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.