PHPackages                             carawebs/wp-helpers - 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. carawebs/wp-helpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

carawebs/wp-helpers
===================

This package provides Wordpress housekeeping &amp; helper functions.

1.0.0(9y ago)027GNUPHP

Since Mar 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Carawebs/wp-helpers)[ Packagist](https://packagist.org/packages/carawebs/wp-helpers)[ RSS](/packages/carawebs-wp-helpers/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

WordPress Helpers
=================

[](#wordpress-helpers)

Odds and sods that are useful on most projects.

This library is in development and I may introduce breaking changes.

```
// Within theme
/**
* Run themehelper setup
*/
add_action('after_setup_theme', function() {

    // Apply Themehelper functions - basic housekeeping
    if (class_exists('\Carawebs\Helpers\Functions')) {
        $args = [];
        new \Carawebs\Helpers\Functions( $args );
    }

});
```

Menu Adjustment for Custom Post Type Views
------------------------------------------

[](#menu-adjustment-for-custom-post-type-views)

Define the CPTs, menus and menu items to target from within the active theme. Use the format `$keyvals['custom-post-type-slug'] => ['class'=>'menu-class-of-parent', 'text'=>'Text val of parent menu item'];`

```
// Define the custom post type view and the required parent menu item:
add_filter( 'carawebs/amend-menu-cpts-target-cpts', function($keyvals) {
    $keyvals['service'] = ['class' => 'services', 'text' => 'Services'];
    return $keyvals;
});
```

Define an array of menu locations for which the amendments should apply using the 'carawebs/amend-menu-cpts-target-locations' hook:

```
add_filter( 'carawebs/amend-menu-cpts-target-locations', function() {
    return ['primary_navigation'];
});
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3387d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4398535?v=4)[DavidEgan](/maintainers/DavidEgan)[@DavidEgan](https://github.com/DavidEgan)

---

Top Contributors

[![csknk](https://avatars.githubusercontent.com/u/5287744?v=4)](https://github.com/csknk "csknk (11 commits)")

### Embed Badge

![Health badge](/badges/carawebs-wp-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/carawebs-wp-helpers/health.svg)](https://phpackages.com/packages/carawebs-wp-helpers)
```

PHPackages © 2026

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