From 274aefb8149995488e3fd6f738bc67bd9664d996 Mon Sep 17 00:00:00 2001 From: olatechpro Date: Tue, 3 Sep 2024 14:09:14 +0100 Subject: [PATCH] Remove the statuses message #1740 --- statuses-intro.php | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/statuses-intro.php b/statuses-intro.php index 0838bcca..6ea093b5 100644 --- a/statuses-intro.php +++ b/statuses-intro.php @@ -125,41 +125,6 @@ function() { } ); } - - add_action( - 'all_admin_notices', - function() { - global $current_user; - - $statuses_info = publishpress_statuses_info(); - - $settings_url = (current_user_can('manage_options')) ? admin_url('admin.php?page=pp-modules-settings') : '#'; - - echo "
"; - - if (!empty($statuses_info['statuses_installed'])) { - printf( - esc_html__('Custom statuses are disabled until you activate the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details.', 'publishpress'), - '', - '', - '', - '' - ); - } else { - printf( - esc_html__('Custom statuses are disabled until you install the %1$sPublishPress Statuses%2$s plugin. See %3$sPlanner > Settings%4$s for details.', 'publishpress'), - '', - '', - '', - '' - ); - } - - echo '
'; - - update_user_option($current_user->ID, 'publishpress_planner_statuses_notice_done', true); - } - ); } } }