diff --git a/functions.php b/functions.php index f83fa6bd..e2af6596 100644 --- a/functions.php +++ b/functions.php @@ -81,3 +81,7 @@ // Remove unwanted menu pages. add_action( 'admin_menu', '\Aldine\Actions\remove_menu_items' ); + +// Remove unwanted actions. +remove_action( 'before_delete_post', '_reset_front_page_settings_for_post' ); +remove_action( 'wp_trash_post', '_reset_front_page_settings_for_post' );