Core Function
View Source on Trac ↗ get_sample_permalink_html()
get_sample_permalink_html( mixed $post, mixed $new_title = null, mixed $new_slug = null ) Returns the HTML of the sample permalink slug editor.
Parameters 3 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Post ID or post object. Required |
| (string | | null) $new_title Optional. New title. Default null. Required |
| (string | | null) $new_slug Optional. New slug. Default null. Required |
Return Value
(string)
The HTML of the sample permalink slug editor.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/post.php
Advertisement