A WordPress-centric search engine for devs and theme authors



post_slug_meta_box ›

Since2.6.0
Deprecatedn/a
post_slug_meta_box ( $post )
Parameters:
  • (object) $post
    Required: Yes
Defined at:
Codex:

Display slug form fields.



Source

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
}