$dismissed_time + ( 2 * 60 * 60 )) { delete_option('book_author_template_notice_dismissed'); delete_transient('book_author_template_welcome_notice_dismissed_time'); add_action('admin_notices', 'book_author_template_general_admin_notice'); } } }); $book_author_template_help_notice = get_option('book_author_template_help_notice', ''); if (($book_author_template_help_notice != 'notice_book_author_template_dismissed' || $book_author_template_help_notice === '') ){ add_action('admin_notices', 'book_author_template_general_admin_notice'); }