WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get sample permalink

Description

Get a sample permalink based off of the post name. Only available in the Admin area and Admin AJAX.

Parameters

$id
(int) ( Post ID or post object.) object
Default: required
$title
(string) (optional) (optional) Title
Default: null
$name
(string) (optional) (optional) Name
Default: null

Return Values

(array) 
With two entries of type string

Change Log

Since: 2.5

Source File

get_sample_permalink() is located in wp-admin/includes/post.php