get_sample_permalink_html WordPress Filter Hook

The get_sample_permalink_html WordPress hook allows you to change the way the sample permalink for a post or page is displayed. This can be useful if you want to add additional information to the sample permalink, or if you want to change the way it is displayed.

apply_filters( 'get_sample_permalink_html', string $return, int $post_id, string $new_title, string $new_slug, WP_Post $post ) #

Filters the sample permalink HTML markup.


Parameters

$return

(string)Sample permalink HTML markup.

$post_id

(int)Post ID.

$new_title

(string)New sample permalink title.

$new_slug

(string)New sample permalink slug.

$post

(WP_Post)Post object.


Top ↑

Source

File: wp-admin/includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Added $post parameter.
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More