Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/edit-tag-form.php | apply_filters | 167 | /** * Filters the editable slug for a post or term. * * Note: This is a multi-use hook in that it is leveraged both for editable * post URIs and term slugs. * * @since 2.6.0 * @since 4.4.0 The `$tag` parameter was added. * * @param string $slug The editable slug. Will be either a term slug or post URI depending * upon the context in which it is evaluated. * @param WP_Term|WP_Post $tag Term or post object. */ |
wp-admin/includes/class-wp-terms-list-table.php | apply_filters | 425 | /** * Filters display of the term name in the terms list table. * * The default output may include padding due to the term's * current level in the term hierarchy. * * @since 2.5.0 * * @see WP_Terms_List_Table::column_name() * * @param string $pad_tag_name The term name, padded if not top-level. * @param WP_Term $tag Term object. */ |
wp-admin/includes/class-wp-terms-list-table.php | apply_filters | 560 | /** * @param WP_Term $tag Term object. * @return string */ |
wp-admin/includes/post.php | apply_filters | 1435 | /** * Returns a sample permalink based on the post name. * * @since 2.5.0 * * @param int|WP_Post $post Post ID or post object. * @param string|null $title Optional. Title to override the post's current title * when generating the post name. Default null. * @param string|null $name Optional. Name to override the post name. Default null. * @return array { * Array containing the sample permalink with placeholder for the post name, and the post name. * * @type string $0 The permalink with placeholder for the post name. * @type string $1 The post name. * } */ |
wp-admin/includes/post.php | apply_filters | 1443 | /** * Returns a sample permalink based on the post name. * * @since 2.5.0 * * @param int|WP_Post $post Post ID or post object. * @param string|null $title Optional. Title to override the post's current title * when generating the post name. Default null. * @param string|null $name Optional. Name to override the post name. Default null. * @return array { * Array containing the sample permalink with placeholder for the post name, and the post name. * * @type string $0 The permalink with placeholder for the post name. * @type string $1 The post name. * } */ |
wp-admin/includes/meta-boxes.php | apply_filters | 889 | /** * Displays slug form fields. * * @since 2.6.0 * * @param WP_Post $post Current post object. */ |
wp-admin/includes/template.php | apply_filters | 321 | /** * Adds hidden fields with the data for use in the inline editor for posts and pages. * * @since 2.7.0 * * @param WP_Post $post Post object. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $slug | The editable slug. Will be either a term slug or post URI depending |
WP_Term|WP_Post | $tag | Term or post object. |