public function createLabels()
    {
        // default labels
        $labels = [
            'name' => $this->plural,
            'singular_name' => $this->singular,
            'menu_name' => $this->plural,
            'all_items' => "All {$this->plural}",
            'edit_item' => "Edit {$this->singular}",
            'view_item' => "View {$this->singular}",
            'update_item' => "Update {$this->singular}",
            'add_new_item' => "Add New {$this->singular}",
            'new_item_name' => "New {$this->singular} Name",
            'parent_item' => "Parent {$this->plural}",
            'parent_item_colon' => "Parent {$this->plural}:",
            'search_items' => "Search {$this->plural}",
            'popular_items' => "Popular {$this->plural}",
            'separate_items_with_commas' => "Seperate {$this->plural} with commas",
            'add_or_remove_items' => "Add or remove {$this->plural}",
            'choose_from_most_used' => "Choose from most used {$this->plural}",
            'not_found' => "No {$this->plural} found",
        ];

        return array_replace($labels, $this->labels);
    }
public function createLabels()
    {
        // default labels
        $labels = [
            'name' => $this->plural,
            'singular_name' => $this->singular,
            'menu_name' => $this->plural,
            'all_items' => "All {$this->plural}",
            'edit_item' => "Edit {$this->singular}",
            'view_item' => "View {$this->singular}",
            'update_item' => "Update {$this->singular}",
            'add_new_item' => "Add New {$this->singular}",
            'new_item_name' => "New {$this->singular} Name",
            'parent_item' => "Parent {$this->plural}",
            'parent_item_colon' => "Parent {$this->plural}:",
            'search_items' => "Search {$this->plural}",
            'popular_items' => "Popular {$this->plural}",
            'separate_items_with_commas' => "Seperate {$this->plural} with commas",
            'add_or_remove_items' => "Add or remove {$this->plural}",
            'choose_from_most_used' => "Choose from most used {$this->plural}",
            'not_found' => "No {$this->plural} found",
        ];

        return array_replace($labels, $this->labels);
    }
public function createLabels ( ) { // default labels $ labels = [ 'name' => $ this -> plural , 'singular_name' => $ this -> singular , 'menu_name' => $ this -> plural , 'all_items' => "All {$this->plural}" , 'edit_item' => "Edit {$this->singular}" , 'view_item' => "View {$this->singular}" , 'update_item' => "Update {$this->singular}" , 'add_new_item' => "Add New {$this->singular}" , 'new_item_name' => "New {$this->singular} Name" , 'parent_item' => "Parent {$this->plural}" , 'parent_item_colon' => "Parent {$this->plural}:" , 'search_items' => "Search {$this->plural}" , 'popular_items' => "Popular {$this->plural}" , 'separate_items_with_commas' => "Seperate {$this->plural} with commas" , 'add_or_remove_items' => "Add or remove {$this->plural}" , 'choose_from_most_used' => "Choose from most used {$this->plural}" , 'not_found' => "No {$this->plural} found" , ] ; return array_replace ( $ labels , $ this -> labels ) ; }
Create labels for the Taxonomy
@return array
Create labels for the Taxonomy