get_sample_permalink

Advertisement

Summery Summery

Filters the sample permalink.

Syntax Syntax

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

Parameters 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 Source

File: wp-admin/includes/post.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.