wp_unique_post_slug Wordpress function


Description:

Computes a unique slug for the post, when given the desired slug and some post details.


Syntax:


Arguments:

(string) $slug the desired slug (post_name)
(integer) $post_ID
(string) $post_status no uniqueness checks are made if the post is still draft or pending
(string) $post_type
(integer) $post_parent


Return Type:

(string) unique slug for the post, based on $post_name (with a -1, -2, etc. suffix)


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_unique_post_slug


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×