On this page
apply_filters( 'get_sample_permalink', array $permalink, int $post_id, string $title, string $name, WP_Post $post )
Filters the sample permalink.
Parameters
$permalinkarray-
Array containing the sample permalink with placeholder for the post name, and the post name.
- string
The permalink with placeholder for the post name.
1stringThe post name.
- string
$post_idint-
Post ID.
$titlestring-
Post title.
$namestring-
Post name (slug).
$postWP_Post-
Post object.
Source
File: wp-admin/includes/post.php. View all references
return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_sample_permalink() wp-admin/includes/post.php | Returns a sample permalink based on the post name. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_sample_permalink