A WordPress-centric search engine for devs and theme authors



wp_unique_post_slug ›

Since3.3.0
Deprecatedn/a
apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug )
Parameters: (6)
  • (string) $slug The post slug.
    Required: Yes
  • (int) $post_ID Post ID.
    Required: Yes
  • (string) $post_status The post status.
    Required: Yes
  • (string) $post_type Post type.
    Required: Yes
  • (int) $post_parent Post parent ID
    Required: Yes
  • (string) $original_slug The original post slug.
    Required: Yes
Defined at:
Codex:

Filters the unique post slug.





Source

return apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug );