public function createLabels()
    {
        // default labels
        $labels = [
            'name' => $this->plural,
            'singular_name' => $this->singular,
            'menu_name' => $this->plural,
            'all_items' => $this->plural,
            'add_new' => "Add New",
            'add_new_item' => "Add New {$this->singular}",
            'edit_item' => "Edit {$this->singular}",
            'new_item' => "New {$this->singular}",
            'view_item' => "View {$this->singular}",
            'search_items' => "Search {$this->plural}",
            'not_found' => "No {$this->plural} found",
            'not_found_in_trash' => "No {$this->plural} found in Trash",
            'parent_item_colon' => "Parent {$this->singular}:",
        ];

        return array_replace_recursive($labels, $this->labels);
    }
public function createLabels()
    {
        // default labels
        $labels = [
            'name' => $this->plural,
            'singular_name' => $this->singular,
            'menu_name' => $this->plural,
            'all_items' => $this->plural,
            'add_new' => "Add New",
            'add_new_item' => "Add New {$this->singular}",
            'edit_item' => "Edit {$this->singular}",
            'new_item' => "New {$this->singular}",
            'view_item' => "View {$this->singular}",
            'search_items' => "Search {$this->plural}",
            'not_found' => "No {$this->plural} found",
            'not_found_in_trash' => "No {$this->plural} found in Trash",
            'parent_item_colon' => "Parent {$this->singular}:",
        ];

        return array_replace_recursive($labels, $this->labels);
    }
public function createLabels ( ) { // default labels $ labels = [ 'name' => $ this -> plural , 'singular_name' => $ this -> singular , 'menu_name' => $ this -> plural , 'all_items' => $ this -> plural , 'add_new' => "Add New" , 'add_new_item' => "Add New {$this->singular}" , 'edit_item' => "Edit {$this->singular}" , 'new_item' => "New {$this->singular}" , 'view_item' => "View {$this->singular}" , 'search_items' => "Search {$this->plural}" , 'not_found' => "No {$this->plural} found" , 'not_found_in_trash' => "No {$this->plural} found in Trash" , 'parent_item_colon' => "Parent {$this->singular}:" , ] ; return array_replace_recursive ( $ labels , $ this -> labels ) ; }
Create the labels for the PostType
@return array
Create the labels for the PostType