wp_filter_wp_template_unique_post_slug


wp_filter_wp_template_unique_post_slug ( $override_slug, $slug, $post_id, $post_status, $post_type )

Access:
  • private
Parameters:
  • (string) override_slug The filtered value of the slug (starts as `null` from apply_filter).
  • (string) slug The original/un-filtered slug (post_name).
  • (int) post_id Post ID.
  • (string) post_status No uniqueness checks are made if the post is still draft or pending.
  • (string) post_type Post type.
Returns:
  • (string) The original, desired slug.
Defined at:

Description

Generates a unique slug for templates.

Related Functions

wp_unique_post_slug, _filter_block_template_part_area, _wp_filter_build_unique_id, wp_filter_global_styles_post, _strip_template_file_suffix

Top Google Results

User discussions

wpseek mobile