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:

Description

Returns a sample permalink based on the post name.

Related Functions

get_sample_permalink_html, get_the_permalink, get_post_permalink, get_blog_permalink, get_permalink

Top Google Results

User discussions

wpseek mobile