wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



post_slug_meta_box › WordPress Function

Seit2.6.0
Veraltetn/v
post_slug_meta_box ( $post )
Parameter:
  • (WP_Post) $post Current post object.
    Erforderlich: Ja
Definiert in:
Codex:

Displays slug form fields.



Quellcode

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
}