public function createOptions()
    {
        // default options
        $options = [
            'hierarchical' => true,
            'show_admin_column' => true,
            'rewrite' => [
                'slug' => $this->slug,
            ],
        ];

        // replace defaults with the options passed
        $options = array_replace_recursive($options, $this->options);

        // create and set labels
        if (!isset($options['labels'])) {
            $options['labels'] = $this->createLabels();
        }

        return $options;
    }
public function createOptions()
    {
        // default options
        $options = [
            'hierarchical' => true,
            'show_admin_column' => true,
            'rewrite' => [
                'slug' => $this->slug,
            ],
        ];

        // replace defaults with the options passed
        $options = array_replace_recursive($options, $this->options);

        // create and set labels
        if (!isset($options['labels'])) {
            $options['labels'] = $this->createLabels();
        }

        return $options;
    }
public function createOptions ( ) { // default options $ options = [ 'hierarchical' => true , 'show_admin_column' => true , 'rewrite' => [ 'slug' => $ this -> slug , ] , ] ; // replace defaults with the options passed $ options = array_replace_recursive ( $ options , $ this -> options ) ; // create and set labels if ( ! isset ( $ options [ 'labels' ] ) ) { $ options [ 'labels' ] = $ this -> createLabels ( ) ; } return $ options ; }
Create options for Taxonomy
@return array Options to pass to register_taxonomy
Create options for Taxonomy