private function get_names()
    {
        $names = [
            'name' => $this->get_name(),
        ];

        if ($this->plural !== null) {
            $names['plural'] = $this->plural;
        }

        if ($this->singular !== null) {
            $names['singular'] = $this->singular;
        }

        if ($this->slug !== null) {
            $names['slug'] = $this->slug;
        }

        return $names;
    }
private function get_names()
    {
        $names = [
            'name' => $this->get_name(),
        ];

        if ($this->plural !== null) {
            $names['plural'] = $this->plural;
        }

        if ($this->singular !== null) {
            $names['singular'] = $this->singular;
        }

        if ($this->slug !== null) {
            $names['slug'] = $this->slug;
        }

        return $names;
    }
private function get_names ( ) { $ names = [ 'name' => $ this -> get_name ( ) , ] ; if ( $ this -> plural !== null ) { $ names [ 'plural' ] = $ this -> plural ; } if ( $ this -> singular !== null ) { $ names [ 'singular' ] = $ this -> singular ; } if ( $ this -> slug !== null ) { $ names [ 'slug' ] = $ this -> slug ; } return $ names ; }
Get the full array of overridden names to pass to PostTypes\Taxonomy.

@since 1.0.0

@return array All names.
Get the full array of overridden names to pass to PostTypes \ Taxonomy .