HTTP/2 301
server: nginx
date: Sat, 11 Oct 2025 01:17:59 GMT
content-type: text/html; charset=UTF-8
location: https://developer.wordpress.org/reference/functions/post_slug_meta_box/
x-content-type-options: nosniff
content-language: en
x-ua-compatible: IE=Edge
vary: Accept-Encoding, Cookie
expires: Thu, 01 Jan 1970 00:00:00 GMT
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
alt-svc: h3=":443"; ma=86400
strict-transport-security: max-age=31536000
HTTP/2 200
server: nginx
date: Sat, 11 Oct 2025 01:18:00 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
post_slug_meta_box() – Function | Developer.WordPress.org
post_slug_meta_box( WP_Post $post )
Displays slug form fields.
$post
WP_PostrequiredCurrent post object.
function post_slug_meta_box( $post ) {
/** This filter is documented in wp-admin/edit-tag-form.php */
$editable_slug = apply_filters( 'editable_slug', $post->post_name, $post );
?>
<label class="screen-reader-text" for="post_name">
<?php
/* translators: Hidden accessibility text. */
_e( 'Slug' );
?>
</label><input name="post_name" type="text" class="large-text" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
<?php
}
View all references View on Trac View on GitHub
Version | Description |
---|
2.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.