get_sample_permalink_html WordPress Filter Hook
The get_sample_permalink_html WordPress hook allows you to change the way the sample permalink for a post or page is displayed. This can be useful if you want to add additional information to the sample permalink, or if you want to change the way it is displayed.
apply_filters( 'get_sample_permalink_html', string $return , int $post_id , string $new_title , string $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)New sample permalink title.
- $new_slug
(string)New sample permalink slug.
- $post
(WP_Post)Post object.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Added $post parameter. |
2.9.0 | Introduced. |