W3cubDocs

/WordPress

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

Filters the sample permalink.

Parameters

$permalink

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

  • (string) The permalink with placeholder for the post name.
  • '1'
    (string) The post name.

$post_id

(int) Post ID.

$title

(string) Post title.

$name

(string) Post name (slug).

$post

(WP_Post) Post object.

Source

File: wp-admin/includes/post.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_sample_permalink