WordPress.org

Ready to get started?Download WordPress

Codex

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

Function Reference/get sample permalink

Contents

Description

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