wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_unique_post_slug › WordPress Filter Hooks

Since3.3.0
Deprecatedn/a
apply_filters( 'wp_unique_post_slug', $slug, $post_id, $post_status, $post_type, $post_parent, $original_slug )
Parameters: (6)
  • () slug The post slug.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
  • () post_status The post status.
    Required: Yes
  • () post_type Post type.
    Required: Yes
  • () post_parent Post parent ID
    Required: Yes
  • () 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 );