How to get current post/page/custom post type post data (ID, Post Name, Post Title, Etc.) in init action?

How to get current post/page/custom post type post data (ID, Post Name, Post Title, Etc.) in init action? If you have something to get in your current page and don’t know how to get the current post ID, post name, post type, post content, and many more, the codes below is the solution. Using init…