_reset_front_page_settings_for_post


_reset_front_page_settings_for_post ( $post_id )

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

Description

Resets the page_on_front, show_on_front, and page_for_post settings when a linked page is deleted or trashed.Also ensures the post is no longer sticky.

Related Functions

rest_get_route_for_post, get_front_page_template, get_settings_errors, rest_get_endpoint_args_for_schema, _resolve_template_for_new_post

Top Google Results

User discussions

wpseek mobile