public static function filter_post_type_display_4($type, $foruse) { $names = array('entry' => array('singular' => _t('Entry'), 'plural' => _t('Entries')), 'page' => array('singular' => _t('Page'), 'plural' => _t('Pages'))); return isset($names[$type][$foruse]) ? $names[$type][$foruse] : $type; }