WordPress at a glance
filter is not described

get_sample_permalink_html filter-hook . WP 2.9.0

Filters the sample permalink HTML markup.


add_filter( 'get_sample_permalink_html', 'filter_function_name_503', 10, 5 );
function filter_function_name_503( $return, $post_id, $new_title, $new_slug, $post ){
	// filter...

	return $return;
Sample permalink HTML markup.
Post ID.
New sample permalink title.
New sample permalink slug.
Post object.


  • Since 4.4.0 Added $post parameter.

Where the hook is called

wp-admin/includes/post.php 1393
$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );

Where the hook is used (in WP core)

Does not used.