wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
post_slug_meta_box › WordPress Function
Od2.6.0
Przestarzałyn/a
› post_slug_meta_box ( $post )
| Parametry: |
|
| Zdefiniowane na: |
|
| Codex: |
Displays slug form fields.
Powiązane Funkcje: post_submit_meta_box, post_tags_meta_box, post_author_meta_box, post_custom_meta_box, post_format_meta_box
Źródło
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
}