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 Post slug.
  • (int) 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, wp_add_editor_classic_theme_styles, wp_untrash_post_set_previous_status

Top Google Results

User discussions

wpseek mobile