PHPackages                             lwplugins/lw-site-manager - 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. lwplugins/lw-site-manager

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

lwplugins/lw-site-manager
=========================

WordPress Site Manager using Abilities API - Full site maintenance via AI/REST

v1.1.21(1mo ago)160GPL-2.0-or-laterPHPPHP &gt;=8.2CI passing

Since Jan 13Pushed 1mo agoCompare

[ Source](https://github.com/lwplugins/lw-site-manager)[ Packagist](https://packagist.org/packages/lwplugins/lw-site-manager)[ Docs](https://github.com/lwplugins/lw-site-manager)[ Fund](https://sinann.io/)[ RSS](/packages/lwplugins-lw-site-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (29)Used By (0)

Lightweight Site Manager
========================

[](#lightweight-site-manager)

WordPress Site Manager using the Abilities API - A native, AI-ready alternative to MainWP.

**Part of [LW Plugins](https://lwplugins.com) - Lightweight plugins for WordPress.**

Requirements
------------

[](#requirements)

- PHP 8.1+
- WordPress 6.9+
- WordPress Abilities API

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer require lwplugins/lw-site-manager
```

### Manual

[](#manual)

1. Download the latest release from GitHub
2. Upload to `wp-content/plugins/lw-site-manager`
3. Activate the plugin in WordPress admin

Available Abilities
-------------------

[](#available-abilities)

### Updates

[](#updates)

AbilityDescription`site-manager/check-updates`Check for core, plugin, and theme updates`site-manager/update-plugin`Update a specific plugin`site-manager/update-theme`Update a specific theme`site-manager/update-core`Update WordPress core`site-manager/update-all`Update everything (with PHP error detection)### Plugin Management

[](#plugin-management)

AbilityDescription`site-manager/list-plugins`List all installed plugins`site-manager/install-plugin`Install a plugin from WordPress.org`site-manager/activate-plugin`Activate a plugin`site-manager/deactivate-plugin`Deactivate a plugin`site-manager/delete-plugin`Delete a plugin### Theme Management

[](#theme-management)

AbilityDescription`site-manager/list-themes`List all installed themes`site-manager/install-theme`Install a theme from WordPress.org`site-manager/activate-theme`Switch to a different theme`site-manager/delete-theme`Delete a theme### Content Management

[](#content-management)

AbilityDescription`site-manager/list-posts`List posts with filtering`site-manager/get-post`Get a single post`site-manager/create-post`Create a new post`site-manager/update-post`Update an existing post`site-manager/delete-post`Delete a post`site-manager/set-post-terms`Set taxonomy terms for a post`site-manager/get-post-terms`Get taxonomy terms for a post### Page Management

[](#page-management)

AbilityDescription`site-manager/list-pages`List pages`site-manager/get-page`Get a single page`site-manager/create-page`Create a new page`site-manager/update-page`Update an existing page`site-manager/delete-page`Delete a page### Taxonomy Management

[](#taxonomy-management)

AbilityDescription`site-manager/list-categories`List categories`site-manager/get-category`Get a single category`site-manager/create-category`Create a category`site-manager/update-category`Update a category`site-manager/delete-category`Delete a category`site-manager/list-tags`List tags`site-manager/get-tag`Get a single tag`site-manager/create-tag`Create a tag`site-manager/update-tag`Update a tag`site-manager/delete-tag`Delete a tag### User Management

[](#user-management)

AbilityDescription`site-manager/list-users`List users`site-manager/get-user`Get user details`site-manager/create-user`Create a new user`site-manager/update-user`Update a user`site-manager/delete-user`Delete a user### Media Management

[](#media-management)

AbilityDescription`site-manager/list-media`List media files`site-manager/upload-media`Upload a media file`site-manager/delete-media`Delete a media file### Comments

[](#comments)

AbilityDescription`site-manager/list-comments`List comments`site-manager/approve-comment`Approve a comment`site-manager/spam-comment`Mark comment as spam`site-manager/delete-comment`Delete a comment### Backup

[](#backup)

AbilityDescription`site-manager/create-backup`Create a full or partial site backup`site-manager/list-backups`List all available backups`site-manager/restore-backup`Restore site from a backup`site-manager/delete-backup`Delete a backup### Health &amp; Diagnostics

[](#health--diagnostics)

AbilityDescription`site-manager/health-check`Run comprehensive site health check`site-manager/error-log`Retrieve recent PHP errors### Database

[](#database)

AbilityDescription`site-manager/optimize-database`Optimize database tables`site-manager/cleanup-database`Remove revisions, transients, spam, etc.`site-manager/repair-database`Repair database tables### Cache

[](#cache)

AbilityDescription`site-manager/flush-cache`Clear all caches (object, page, opcache)### Settings

[](#settings)

AbilityDescription`site-manager/get-option`Get a WordPress option`site-manager/update-option`Update a WordPress option`site-manager/list-options`List options with filtering### WooCommerce (if active)

[](#woocommerce-if-active)

AbilityDescription`site-manager/wc-list-products`List WooCommerce products`site-manager/wc-list-orders`List WooCommerce orders`site-manager/wc-order-stats`Get order statistics`site-manager/wc-revenue-report`Get revenue reportsDocumentation
-------------

[](#documentation)

Full API documentation is available in the [docs/abilities](docs/abilities/) directory.

Usage Examples
--------------

[](#usage-examples)

### REST API

[](#rest-api)

```
# Check for updates
curl -X GET "https://yoursite.com/wp-json/wp-abilities/v1/abilities/site-manager/check-updates/run" \
  -H "Authorization: Basic BASE64_ENCODED_APP_PASSWORD"

# Create a post with custom taxonomy
curl -X POST "https://yoursite.com/wp-json/wp-abilities/v1/abilities/site-manager/create-post/run" \
  -H "Authorization: Basic BASE64_ENCODED_APP_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"input":{"title":"My Post","content":"Content here","status":"publish","taxonomies":{"my_custom_tax":[1,2,3]}}}'

# Set terms for a custom post type
curl -X POST "https://yoursite.com/wp-json/wp-abilities/v1/abilities/site-manager/set-post-terms/run" \
  -H "Authorization: Basic BASE64_ENCODED_APP_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"input":{"id":123,"taxonomy":"product_cat","terms":[5,10]}}'
```

### PHP

[](#php)

```
// Check updates
$ability = wp_get_ability( 'site-manager/check-updates' );
$updates = $ability->execute( [ 'type' => 'all' ] );

// Create a post with custom taxonomies
$ability = wp_get_ability( 'site-manager/create-post' );
$result = $ability->execute([
    'title' => 'My New Post',
    'content' => 'Post content here',
    'status' => 'publish',
    'taxonomies' => [
        'category' => [1, 2],
        'post_tag' => [5, 6, 7],
        'my_custom_tax' => [10, 11],
    ],
]);
```

Authentication
--------------

[](#authentication)

Use WordPress Application Passwords for REST API authentication:

1. Go to Users → Your Profile
2. Scroll to "Application Passwords"
3. Create new application password
4. Use Basic Auth: `Authorization: Basic base64(username:app_password)`

AI Integration
--------------

[](#ai-integration)

This plugin is designed for AI agent integration via:

- **REST API** - Any AI can call abilities via HTTP
- **MCP Adapter** - Claude, GPT can use abilities as tools
- **Agentic Loops** - AI decides which abilities to call

Example AI workflow:

```
User: "Check my site and update everything safely"

AI Agent:
1. Calls site-manager/health-check
2. Calls site-manager/check-updates
3. Calls site-manager/create-backup
4. Calls site-manager/update-all with stop_on_error=true
5. If errors: reports issues, suggests rollback
6. If success: calls site-manager/health-check again
7. Returns summary to user

```

Links
-----

[](#links)

- [GitHub](https://github.com/lwplugins/lw-site-manager)
- [LW Plugins](https://lwplugins.com)
- [All LW Plugins](https://github.com/lwplugins)

Changelog
---------

[](#changelog)

### 1.1.21

[](#1121)

- New: Extensibility hooks for external plugins to register abilities
- New: `lw_site_manager_register_abilities` action - plugins can register their own abilities
- New: `lw_site_manager_register_categories` action - plugins can register ability categories

### 1.1.20

[](#1120)

- Fix: Smarter autoloader fallback - supports root Composer dependency installs

License
-------

[](#license)

GPL-2.0-or-later

Sponsor
-------

[](#sponsor)

[ ![Sinann](https://camo.githubusercontent.com/08cb3e29f7e91a32ff084d73f5e4c33b6ac8f3508f20dfe040357e9a94c5952b/68747470733a2f2f73696e616e6e2e696f2f66617669636f6e2e737667)](https://sinann.io/)Supported by [Sinann](https://sinann.io/)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

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 ~2 days

Recently: every ~8 days

Total

28

Last Release

58d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.0

v1.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/56bc0e3c885c56236e52eaed12997aa4fbaf0645299acf0092a8cc5b887d65b0?d=identicon)[trueqap](/maintainers/trueqap)

---

Top Contributors

[![trueqap](https://avatars.githubusercontent.com/u/32407751?v=4)](https://github.com/trueqap "trueqap (46 commits)")

---

Tags

airest-apiwordpresswordpress-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lwplugins-lw-site-manager/health.svg)

```
[![Health](https://phpackages.com/badges/lwplugins-lw-site-manager/health.svg)](https://phpackages.com/packages/lwplugins-lw-site-manager)
```

PHPackages © 2026

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