Habari\Post::filter_post_type_display_4 PHP Method

filter_post_type_display_4() public static method

How to display the built-in post types.
public static filter_post_type_display_4 ( string $type, string $foruse ) : string
$type string The type of Post
$foruse string Either 'singular' or 'plural'
return string The translated type name, or the built-in name if there is no translation
    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;
    }