PHPackages                             britco/wp-default-terms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. britco/wp-default-terms

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

britco/wp-default-terms
=======================

v0.1.6(10y ago)065[1 issues](https://github.com/britco/wp-default-terms/issues)MITPHP

Since Aug 12Pushed 10y ago7 watchersCompare

[ Source](https://github.com/britco/wp-default-terms)[ Packagist](https://packagist.org/packages/britco/wp-default-terms)[ RSS](/packages/britco-wp-default-terms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

wp-default-terms
----------------

[](#wp-default-terms)

[![Circle CI](https://camo.githubusercontent.com/cba77e8c60ce934aeab8bd28ba441a0cb32b9cc118a87590ff597f8018eaa8c9/68747470733a2f2f636972636c6563692e636f6d2f67682f62726974636f2f77702d64656661756c742d7465726d732e7376673f7374796c653d737667)](https://circleci.com/gh/britco/wp-default-terms)

A way to set default terms for taxonomies. Similar how to the "default category" functionality works, but for any taxonomy.

Installation
------------

[](#installation)

`composer require britco/wp-default-terms`

Usage
-----

[](#usage)

```
function custom_tax_init() {
  register_taxonomy('custom-tax', array('post'), array(
    'defaults' => array(
        'Foo'
      )
  ));
}

```

You can also specify different defaults for different post types

```
function custom_tax_init() {
  register_taxonomy('custom-tax', array('post', 'custom_post_type'), array(
    'defaults' => array(
        'post' => array(
          'Foo'
        ),
        'custom_post_type' => array(
          'Bar'
        )
      )
  ));
}

```

Also, you can set defaults for already registered taxonomies

```
$taxonomy = get_taxonomy('post_tag');
$taxonomy->defaults->set(array('paper'));

```

License
-------

[](#license)

Available under the MIT License.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

5

Last Release

3884d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ddc59ed11905f3ff2b2526bdfca72ca82f5353999d951ea2ea8176b098e3970?d=identicon)[pdufour](/maintainers/pdufour)

---

Top Contributors

[![pdufour](https://avatars.githubusercontent.com/u/1239145?v=4)](https://github.com/pdufour "pdufour (30 commits)")

### Embed Badge

![Health badge](/badges/britco-wp-default-terms/health.svg)

```
[![Health](https://phpackages.com/badges/britco-wp-default-terms/health.svg)](https://phpackages.com/packages/britco-wp-default-terms)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
