wpseek.com
A WordPress-centric search engine for devs and theme authors
pre_wp_unique_post_slug › WordPress Filter Hooks
Since5.1.0
Deprecatedn/a
› apply_filters( 'pre_wp_unique_post_slug', null, $slug, $post_id, $post_status, $post_type, $post_parent )
| Parameters: (6) |
|
| Defined at: |
|
| Codex: |
Filters the post slug before it is generated to be unique.
Returning a non-null value will short-circuit the unique slug generation, returning the passed value instead.Related Functions: wp_unique_post_slug, wp_unique_term_slug, wp_filter_wp_template_unique_post_slug, _truncate_post_slug, previous_post_link, previous_posts