post_slug_meta_box
Display slug form fields.
Description
post_slug_meta_box( (object) $post );
Parameters (1)
- 0. $post (object)
- The post.
Usage
if ( !function_exists( 'post_slug_meta_box' ) ) { require_once ABSPATH . '/wp-admin/includes/meta-boxes.php'; } // The post. $post = null; // NOTICE! Understand what this does before running. $result = post_slug_meta_box($post);
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/meta-boxes.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 );
- ?>
- <?php