WordPress at Your Fingertips
filter is not described

get_sample_permalink filter-hook . WP 4.4.0

Filters the sample permalink.


add_filter( 'get_sample_permalink', 'filter_function_name_570', 10, 5 );
function filter_function_name_570( $permalink, $post_id, $title, $name, $post ){
	// filter...

	return $permalink;

Array containing the sample permalink with placeholder for the post name, and the post name.

  • 0(string)
    The permalink with placeholder for the post name.

  • 1(string)
    The post name.
Post ID.
Post title.
Post name (slug).
Post object.


Since 4.4.0 Introduced.

Where the hook is called

wp-admin/includes/post.php 1421
return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post );

Where in WP core the hook is used WordPress

Usage not found.