public static function isPostListingPage($asPostTypes = array()) { if ('edit.php' != self::getPageNow()) { return false; } $_aPostTypes = self::getAsArray($asPostTypes); if (!isset($_GET['post_type'])) { return in_array('post', $_aPostTypes); } return in_array($_GET['post_type'], $_aPostTypes); }