_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

get_front_page_template, get_settings_errors, _close_comments_for_old_post, wp_set_all_user_settings, _close_comments_for_old_posts

Top Google Results

User discussions

wpseek mobile