wp_set_unique_slug_on_create_template_part


wp_set_unique_slug_on_create_template_part ( $post_id )

Parameters:
  • (int) post_id Post ID.
Defined at:

Description

Sets a custom slug when creating auto-draft template parts.This is only needed for auto-drafts created by the regular WP editor. If this page is to be removed, this will not be necessary.

Related Functions

_get_block_templates_paths, wp_underscore_video_template, wp_underscore_playlist_templates, wp_enable_block_templates, wp_underscore_audio_template

Top Google Results

User discussions

wpseek mobile