get_sample_permalink
get_sample_permalink ( $post, $title = null, $name = null )
Parameters:- (int|WP_Post) post Post ID or post object.
- (string|null) title Optional. Title to override the post's current title when generating the post name. Default null.
- (string|null) name Optional. Name to override the post name. Default null.
Returns:- (array) { Array containing the sample permalink with placeholder for the post name, and the post name. @type string $0 The permalink with placeholder for the post name. @type string $1 The post name. }
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Returns a sample permalink based on the post name.