WordPress at a glance
filter is not described

get_sample_permalink_html filter-hook . WP 2.9.0

Filters the sample permalink HTML markup.

Usage

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;
}
$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.

Notes

  • Since 4.4.0 Added $post parameter.

Where the hook is called

get_sample_permalink_html()
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.