src/Taxonomy/Taxonomy.php
protected function parseObjectsForCustomStatus(array $objects): TaxonomyInterface
    {
        foreach ($objects as $object) {
            if ($this->container->bound('themosis.posttype.'.$object)) {
                $postType = $this->container['themosis.posttype.'.$object];

                if ($postType->hasStatus()) {
                    $this->setArguments([
                        'update_count_callback' => '_update_generic_term_count'
                    ]);
                    break;
                }
            }
        }

        return $this;
    }
protected function parseObjectsForCustomStatus(array $objects): TaxonomyInterface
    {
        foreach ($objects as $object) {
            if ($this->container->bound('themosis.posttype.'.$object)) {
                $postType = $this->container['themosis.posttype.'.$object];

                if ($postType->hasStatus()) {
                    $this->setArguments([
                        'update_count_callback' => '_update_generic_term_count'
                    ]);
                    break;
                }
            }
        }

        return $this;
    }
protected function parseObjectsForCustomStatus ( array $ objects ) : TaxonomyInterface { foreach ( $ objects as $ object ) { if ( $ this -> container -> bound ( 'themosis.posttype.' . $ object ) ) { $ postType = $ this -> container [ 'themosis.posttype.' . $ object ] ; if ( $ postType -> hasStatus ( ) ) { $ this -> setArguments ( [ 'update_count_callback' => '_update_generic_term_count' ] ) ; break ; } } } return $ this ; }
Parse attached objects and set default update count callback.

@param array $objects

@return TaxonomyInterface
Parse attached objects and set default update count callback .