taxonomy)) { // Define an associative array for the taxonomy settings $taxonomy_settings = array( 'sermon_series' => 'asp_archive_series_dropdown_orderby', 'sermon_speaker' => 'asp_archive_speaker_dropdown_orderby', 'sermon_topics' => 'asp_archive_topic_dropdown_orderby', 'sermon_book' => 'asp_archive_book_dropdown_orderby' ); // Check if the current taxonomy is in our array if (array_key_exists($current_screen->taxonomy, $taxonomy_settings)) { $current_option = get_option($taxonomy_settings[$current_screen->taxonomy]); // Check if Drag & Drop is not selected if ($current_option !== 'custom_order') { echo '
Hint: Enable drag-and-drop ordering in Advanced Sermons by adjusting the Archive Settings. You can learn more here.
'; } else { // Display a different notice when Drag & Drop is selected echo '
Hint: "Screen Options" in the top right corner of the WordPress dashboard, allows you to increase items per page to order large libraries.
'; } } } } // Hook the function to the relevant actions add_action('after-sermon_series-table', 'asp_admin_notice_taxonomy_drag_drop_hint'); add_action('after-sermon_speaker-table', 'asp_admin_notice_taxonomy_drag_drop_hint'); add_action('after-sermon_topics-table', 'asp_admin_notice_taxonomy_drag_drop_hint'); add_action('after-sermon_book-table', 'asp_admin_notice_taxonomy_drag_drop_hint');