[wp-hackers] identifying the current post type on admin screen.
halukkaramete at gmail.com
Thu Jan 30 22:45:12 UTC 2014
on admin pages, how can I detect that the current admin is dealing with a
dealing meas: he is about to "add new" or "edit" or "delete" a post that
belongs to that cpt.
something of this sort is what I'm looking for;
if (is_admin() and get_post_type( $post ) == 'that_cpt')
which obviously would not work.
More information about the wp-hackers