apply_filters( 'get_sample_permalink_html', string $return , int $post_id , string|null $new_title , string|null $new_slug , WP_Post $post )
Filters the sample permalink HTML markup.
Parameters
-
$return
string -
Sample permalink HTML markup.
-
$post_id
int -
Post ID.
-
$new_title
string|null -
New sample permalink title.
-
$new_slug
string|null -
New sample permalink slug.
-
$post
WP_Post -
Post object.
Source
File: wp-admin/includes/post.php
.
View all references
$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );
Changelog
Version | Description |
---|---|
4.4.0 | Added $post parameter. |
2.9.0 | Introduced. |