_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

Reset 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_route_for_term, wp_set_all_user_settings

Top Google Results

User discussions

wpseek mobile