post_slug_meta_box() – Display slug form fields.

You appear to be a bot. Output may be restricted

Description

Displays slug form fields.

Usage

post_slug_meta_box( $post );

Parameters

$post
( WP_Post ) required – Current post object.

Returns

void

Source

File name: wordpress/wp-admin/includes/meta-boxes.php
Lines:

1 to 7 of 7
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 _e( 'Slug' ); ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
	<?php
}
 

 View on GitHub View on Trac