public function current_object_type()
{
global $pagenow;
$type = 'post';
if (in_array($pagenow, array('user-edit.php', 'profile.php', 'user-new.php'), true)) {
$type = 'user';
}
if (in_array($pagenow, array('edit-comments.php', 'comment.php'), true)) {
$type = 'comment';
}
if (in_array($pagenow, array('edit-tags.php', 'term.php'), true)) {
$type = 'term';
}
return $type;
}