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

Filters the sample permalink.


Parameters

$permalink

Array containing the sample permalink with placeholder for the post name, and the post name.<br>

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

$post_id

Post ID.

$title

Post title.

$name

Post name (slug).

$post

Post object.


Source

File: wp-admin/includes/post.php

View on GitHub


Changelog

Changelog
Version Description
4.4.0 Introduced.