$dismissed_time + 120 ) {
// Transient has expired; delete it and show the rating notice.
delete_transient( 'book_review_blog_welcome_notice_dismissed_time' );
// Do not delete the help_notice option to prevent welcome notice from reappearing.
add_action( 'admin_notices', 'book_review_blog_rating_admin_notice' );
}
} else {
// Show welcome notice if it hasn't been dismissed.
add_action( 'admin_notices', 'book_review_blog_general_admin_notice' );
}
}
add_action( 'admin_init', 'book_review_blog_handle_notice_dismissal' );
add_action( 'admin_init', 'book_review_blog_handle_rating_notice_dismissal' );
add_action( 'admin_init', 'book_review_blog_handle_rating_notice_remind' );
add_action( 'admin_init', 'book_review_blog_register_admin_notice' );