_resolve_template_for_new_post


_resolve_template_for_new_post ( $wp_query )

Access:
  • private
Parameters:
  • (WP_Query) wp_query Current WP_Query instance, passed by reference.
Defined at:

Description

Sets the current WP_Query to return auto-draft posts.The auto-draft status indicates a new post, so allow the the WP_Query instance to return an auto-draft post for template resolution when editing a new post.

Related Functions

resolve_block_template, rest_get_route_for_post, _remove_theme_support, _resolve_home_block_template, wp_filter_wp_template_unique_post_slug

Top Google Results

User discussions

wpseek mobile