{"id":42113635,"url":"https://github.com/lwplugins/lw-site-manager","last_synced_at":"2026-04-02T15:25:41.627Z","repository":{"id":334686969,"uuid":"1142324934","full_name":"lwplugins/lw-site-manager","owner":"lwplugins","description":"WordPress Site Manager with Abilities API - AI-ready site maintenance","archived":false,"fork":false,"pushed_at":"2026-02-06T10:48:37.000Z","size":410,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-06T18:28:27.269Z","etag":null,"topics":["ai","rest-api","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lwplugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-26T09:01:45.000Z","updated_at":"2026-02-06T10:48:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lwplugins/lw-site-manager","commit_stats":null,"previous_names":["lwplugins/lw-site-manager"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/lwplugins/lw-site-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwplugins%2Flw-site-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwplugins%2Flw-site-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwplugins%2Flw-site-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwplugins%2Flw-site-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwplugins","download_url":"https://codeload.github.com/lwplugins/lw-site-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwplugins%2Flw-site-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29192028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","rest-api","wordpress","wordpress-plugin"],"created_at":"2026-01-26T14:01:31.888Z","updated_at":"2026-04-02T15:25:41.618Z","avatar_url":"https://github.com/lwplugins.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lightweight Site Manager\n\nWordPress Site Manager using the Abilities API - A native, AI-ready alternative to MainWP.\n\n**Part of [LW Plugins](https://lwplugins.com) - Lightweight plugins for WordPress.**\n\n## Requirements\n\n- PHP 8.1+\n- WordPress 6.9+\n- WordPress Abilities API\n\n## Installation\n\n### Via Composer\n\n```bash\ncomposer require lwplugins/lw-site-manager\n```\n\n### Manual\n\n1. Download the latest release from GitHub\n2. Upload to `wp-content/plugins/lw-site-manager`\n3. Activate the plugin in WordPress admin\n\n## Available Abilities\n\n### Updates\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/check-updates` | Check for core, plugin, and theme updates |\n| `site-manager/update-plugin` | Update a specific plugin |\n| `site-manager/update-theme` | Update a specific theme |\n| `site-manager/update-core` | Update WordPress core |\n| `site-manager/update-all` | Update everything (with PHP error detection) |\n\n### Plugin Management\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-plugins` | List all installed plugins |\n| `site-manager/install-plugin` | Install a plugin from WordPress.org |\n| `site-manager/activate-plugin` | Activate a plugin |\n| `site-manager/deactivate-plugin` | Deactivate a plugin |\n| `site-manager/delete-plugin` | Delete a plugin |\n\n### Theme Management\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-themes` | List all installed themes |\n| `site-manager/install-theme` | Install a theme from WordPress.org |\n| `site-manager/activate-theme` | Switch to a different theme |\n| `site-manager/delete-theme` | Delete a theme |\n\n### Content Management\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-posts` | List posts with filtering |\n| `site-manager/get-post` | Get a single post |\n| `site-manager/create-post` | Create a new post |\n| `site-manager/update-post` | Update an existing post |\n| `site-manager/delete-post` | Delete a post |\n| `site-manager/set-post-terms` | Set taxonomy terms for a post |\n| `site-manager/get-post-terms` | Get taxonomy terms for a post |\n\n### Page Management\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-pages` | List pages |\n| `site-manager/get-page` | Get a single page |\n| `site-manager/create-page` | Create a new page |\n| `site-manager/update-page` | Update an existing page |\n| `site-manager/delete-page` | Delete a page |\n\n### Taxonomy Management\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-categories` | List categories |\n| `site-manager/get-category` | Get a single category |\n| `site-manager/create-category` | Create a category |\n| `site-manager/update-category` | Update a category |\n| `site-manager/delete-category` | Delete a category |\n| `site-manager/list-tags` | List tags |\n| `site-manager/get-tag` | Get a single tag |\n| `site-manager/create-tag` | Create a tag |\n| `site-manager/update-tag` | Update a tag |\n| `site-manager/delete-tag` | Delete a tag |\n\n### User Management\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-users` | List users |\n| `site-manager/get-user` | Get user details |\n| `site-manager/create-user` | Create a new user |\n| `site-manager/update-user` | Update a user |\n| `site-manager/delete-user` | Delete a user |\n\n### Media Management\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-media` | List media files |\n| `site-manager/upload-media` | Upload a media file |\n| `site-manager/delete-media` | Delete a media file |\n\n### Comments\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/list-comments` | List comments |\n| `site-manager/approve-comment` | Approve a comment |\n| `site-manager/spam-comment` | Mark comment as spam |\n| `site-manager/delete-comment` | Delete a comment |\n\n### Backup\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/create-backup` | Create a full or partial site backup |\n| `site-manager/list-backups` | List all available backups |\n| `site-manager/restore-backup` | Restore site from a backup |\n| `site-manager/delete-backup` | Delete a backup |\n\n### Health \u0026 Diagnostics\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/health-check` | Run comprehensive site health check |\n| `site-manager/error-log` | Retrieve recent PHP errors |\n\n### Database\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/optimize-database` | Optimize database tables |\n| `site-manager/cleanup-database` | Remove revisions, transients, spam, etc. |\n| `site-manager/repair-database` | Repair database tables |\n\n### Cache\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/flush-cache` | Clear all caches (object, page, opcache) |\n\n### Settings\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/get-option` | Get a WordPress option |\n| `site-manager/update-option` | Update a WordPress option |\n| `site-manager/list-options` | List options with filtering |\n\n### WooCommerce (if active)\n\n| Ability | Description |\n|---------|-------------|\n| `site-manager/wc-list-products` | List WooCommerce products |\n| `site-manager/wc-list-orders` | List WooCommerce orders |\n| `site-manager/wc-order-stats` | Get order statistics |\n| `site-manager/wc-revenue-report` | Get revenue reports |\n\n## Documentation\n\nFull API documentation is available in the [docs/abilities](docs/abilities/) directory.\n\n## Usage Examples\n\n### REST API\n\n```bash\n# Check for updates\ncurl -X GET \"https://yoursite.com/wp-json/wp-abilities/v1/abilities/site-manager/check-updates/run\" \\\n  -H \"Authorization: Basic BASE64_ENCODED_APP_PASSWORD\"\n\n# Create a post with custom taxonomy\ncurl -X POST \"https://yoursite.com/wp-json/wp-abilities/v1/abilities/site-manager/create-post/run\" \\\n  -H \"Authorization: Basic BASE64_ENCODED_APP_PASSWORD\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"title\":\"My Post\",\"content\":\"Content here\",\"status\":\"publish\",\"taxonomies\":{\"my_custom_tax\":[1,2,3]}}}'\n\n# Set terms for a custom post type\ncurl -X POST \"https://yoursite.com/wp-json/wp-abilities/v1/abilities/site-manager/set-post-terms/run\" \\\n  -H \"Authorization: Basic BASE64_ENCODED_APP_PASSWORD\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"id\":123,\"taxonomy\":\"product_cat\",\"terms\":[5,10]}}'\n```\n\n### PHP\n\n```php\n// Check updates\n$ability = wp_get_ability( 'site-manager/check-updates' );\n$updates = $ability-\u003eexecute( [ 'type' =\u003e 'all' ] );\n\n// Create a post with custom taxonomies\n$ability = wp_get_ability( 'site-manager/create-post' );\n$result = $ability-\u003eexecute([\n    'title' =\u003e 'My New Post',\n    'content' =\u003e 'Post content here',\n    'status' =\u003e 'publish',\n    'taxonomies' =\u003e [\n        'category' =\u003e [1, 2],\n        'post_tag' =\u003e [5, 6, 7],\n        'my_custom_tax' =\u003e [10, 11],\n    ],\n]);\n```\n\n## Authentication\n\nUse WordPress Application Passwords for REST API authentication:\n\n1. Go to Users → Your Profile\n2. Scroll to \"Application Passwords\"\n3. Create new application password\n4. Use Basic Auth: `Authorization: Basic base64(username:app_password)`\n\n## AI Integration\n\nThis plugin is designed for AI agent integration via:\n\n- **REST API** - Any AI can call abilities via HTTP\n- **MCP Adapter** - Claude, GPT can use abilities as tools\n- **Agentic Loops** - AI decides which abilities to call\n\nExample AI workflow:\n```\nUser: \"Check my site and update everything safely\"\n\nAI Agent:\n1. Calls site-manager/health-check\n2. Calls site-manager/check-updates\n3. Calls site-manager/create-backup\n4. Calls site-manager/update-all with stop_on_error=true\n5. If errors: reports issues, suggests rollback\n6. If success: calls site-manager/health-check again\n7. Returns summary to user\n```\n\n## Links\n\n- [GitHub](https://github.com/lwplugins/lw-site-manager)\n- [LW Plugins](https://lwplugins.com)\n- [All LW Plugins](https://github.com/lwplugins)\n\n## Changelog\n\n### 1.1.21\n- New: Extensibility hooks for external plugins to register abilities\n- New: `lw_site_manager_register_abilities` action - plugins can register their own abilities\n- New: `lw_site_manager_register_categories` action - plugins can register ability categories\n\n### 1.1.20\n- Fix: Smarter autoloader fallback - supports root Composer dependency installs\n\n## License\n\nGPL-2.0-or-later\n\n\n## Sponsor\n\n\u003ca href=\"https://sinann.io/\"\u003e\n  \u003cimg src=\"https://sinann.io/favicon.svg\" alt=\"Sinann\" width=\"40\"\u003e\n\u003c/a\u003e\n\nSupported by [Sinann](https://sinann.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwplugins%2Flw-site-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwplugins%2Flw-site-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwplugins%2Flw-site-manager/lists"}