Hi, I'm learning about WordPress. I am trying to get the post type with get_post_type() but in "All Pages" page, I can't get the post type. In "All Posts" it works, but in "All Pages" it is not working. Could give me some please give me some advice?
Here is the code I am using.
add_action( 'admin_notices', 'test');
$post_type_page = get_post_type();