wp_add_trashed_suffix_to_post_name_for_trashed_posts


wp_add_trashed_suffix_to_post_name_for_trashed_posts ( $post_name, $post_ID = 0 )

Access:
  • private
Parameters:
  • (string) $post_name Slug.
  • (string) $post_ID Optional. Post ID that should be ignored. Default 0.
Defined at:

Description

Adds a suffix if any trashed posts have a given slug.

Store its desired (i.e. current) slug so it can try to reclaim it if the post is untrashed.

For internal use.

Related Functions

wp_add_trashed_suffix_to_post_name_for_post

Top Google Results

User discussions

wpseek mobile