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, _wp_filter_build_unique_id, _strip_template_file_suffix, wp_dependencies_unique_hosts, get_page_template_slug

Top Google Results

User discussions

wpseek mobile