post_slug_meta_box()
Displays slug form fields.
Хуки из функции
Возвращает
null. Ничего (null).
Использование
post_slug_meta_box( $post );
- $post(WP_Post) (обязательный)
- Current post object.
Список изменений
| С версии 2.6.0 | Введена. |
Код post_slug_meta_box() post slug meta box WP 7.0.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
}