get_sample_permalink


get_sample_permalink ( $id, $title = null, $name = null )

Parameters:
  • (int) $id Post ID or post object.
  • (string) $title Optional. Title to override the post's current title when generating the post name. Default null.
  • (string) $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.
Defined at:

Description

Get a sample permalink based off of the post name.

Related Functions

get_sample_permalink_html, get_the_permalink, get_permalink, get_post_permalink, get_blog_permalink

Top Google Results

User discussions

wpseek mobile