apply_filters( ‘get_sample_permalink_html’, string $return, int $post_id, string|null $new_title, string|null $new_slug, WP_Post $post )

In this article

Filters the sample permalink HTML markup.

Parameters

$returnstring
Sample permalink HTML markup.
$post_idint
Post ID.
$new_titlestring|null
New sample permalink title.
$new_slugstring|null
New sample permalink slug.
$postWP_Post
Post object.

Source

$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );

Changelog

VersionDescription
4.4.0Added $post parameter.
2.9.0Introduced.

User Contributed Notes

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