post_slug_meta_box()WP 2.6.0

Displays slug form fields.

Hooks from the function

Return

null. Nothing (null).

Usage

post_slug_meta_box( $post );
$post(WP_Post) (required)
Current post object.

Changelog

Since 2.6.0 Introduced.

post_slug_meta_box() code WP 6.5.4

<?php
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
}