{"data":{"slug":"discovered-004df73142b980b32b003838c2e822f00b4d37a8b89892cf","title":"Owned WordPress Plugin Ops","summary":"Search, stabilize, and neutralize problematic WordPress plugins on a user-owned site to recover functionality without compromising security or licensing. Deliverables include HTTP status reports, plugin deactivation, and crash guards.","url":"https:\/\/skillshunter.net\/skills\/discovered-004df73142b980b32b003838c2e822f00b4d37a8b89892cf","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-004df73142b980b32b003838c2e822f00b4d37a8b89892cf","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-004df73142b980b32b003838c2e822f00b4d37a8b89892cf.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-004df73142b980b32b003838c2e822f00b4d37a8b89892cf\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the site is owned by the user and that you have SSH access and wp-cli permissions. Define `SVS_WP_SKIP_LICENSE_REMOTE` in `wp-config.php` or a mu-plugin to bypass license checks locally. The first deliverable is a report with the plugin slug, crash location, and HTTP status after stabilization.","instructions":"---\nname: owned-wordpress-plugin-ops\nversion: 1.0.1\ndescription: >\n  Search and neutralize WordPress plugins on a site the user owns \u2014 grep\n  wp-content\/plugins, wp-cli deactivate, mu-plugin kill switch, smallest\n  crash-guard (wp_die \/ license phone-home fatal \/ missing class). Use when\n  the site whitescreens, admin is locked, or the user asks to inspect \/\n  deactivate \/ stub a plugin. Not for cracked\/nulled license keys. Memory:\n  owned-wordpress-plugin-ops.\n---\n\n# Owned WordPress Plugin Ops\n\n**Invoke on the user\u2019s WordPress** when a plugin is taking the site down or they\nask to search\/deactivate\/stub it. Pair with always-on memory\n`owned-wordpress-plugin-ops.md`.\n\n> **Neutralize \u2260 nulled.** Stop the fatal. Do not ship stolen keys or cracked\n> plugin packs. If they say \u201cnullar\u201d as crack: refuse the crack; still recover\n> the site.\n\n## Jev fix\n\nNo key or `SVS_JEV=0`: the symptom table in \u00a73.\n\nWith a key: Noul `is_crack` and Choice `fix` in one call before editing.\n`is_crack` \u2265 0.70: refuse the key, still apply `fix`. Deactivate and curl proof\nstay in code. Questions: `typesafe-jev\/reference\/skill-routines.md` \u00a7 wordpress-fix.\n\n---\n\n## Golden Rules\n\n1. **Owned site only** \u2014 their SSH, their `wp-content`, their wp-cli.\n2. **Stabilize before archaeology** if wp-admin is down.\n3. **Prefer mu-plugin overlay** over editing `plugins\/<slug>\/` (updates wipe edits).\n4. **Smallest guard** \u2014 early return \/ unhook \/ `function_exists`, not a rewrite.\n5. **Prove** front + `wp-login.php` \/ wp-admin after the change.\n\n---\n\n## 1. Stabilize (site down)\n\n```bash\n# Prefer wp-cli on the host (owned-infra-ops SSH)\nwp plugin list --status=active --path=\"$WP_ROOT\"\nwp plugin deactivate offending-slug --path=\"$WP_ROOT\"\n\n# No wp-cli: rename the folder (last resort)\nmv wp-content\/plugins\/offending-slug wp-content\/plugins\/offending-slug.off\n```\n\n**mu-plugin kill switch** (survives if they cannot reach wp-cli):\n\n```php\n<?php\n\/**\n * Plugin Name: SVS kill offending-slug\n * Description: Emergency deactivate \u2014 owned-site recovery. Delete when stable.\n *\/\nadd_action('plugins_loaded', static function (): void {\n    if (!function_exists('deactivate_plugins')) {\n        require_once ABSPATH . 'wp-admin\/includes\/plugin.php';\n    }\n    deactivate_plugins('offending-slug\/offending-slug.php', true);\n}, 0);\n```\n\nDrop as `wp-content\/mu-plugins\/00-svs-kill-offending-slug.php`.\n\n---\n\n## 2. Search (do not refuse)\n\n```bash\nPLUGINS=\"$WP_ROOT\/wp-content\/plugins\/<slug>\"\nrg -n -i \"wp_die|wp_error|critical error|license|freemius|edd_sl|envato|update_plugins|fs_redirect\" \"$PLUGINS\"\nrg -n \"curl_|wp_remote_|file_get_contents\\s*\\(\\s*['\\\"]https?:\" \"$PLUGINS\"\n```\n\nUse the PHP fatal \/ stack frame the user pasted as the first grep target.\nAlso check `wp-content\/mu-plugins\/` and the active theme if the frame is not\nin a plugin.\n\nIgnore WordPress Ad Inserter `data-ai-*` attrs (watermark false positive) \u2014\nthat is not this skill.\n\n---\n\n## 3. Neutralize the crash\n\n| Symptom | Smallest fix |\n|---------|----------------|\n| `wp_die` \/ fatal on missing license | Replace die with `admin_notice` + `return` |\n| Remote license HTTP fatals \/ 30s timeout | Early-return before `wp_remote_*`; keep local features |\n| Missing class after partial update | `class_exists` guard or deactivate until files restored |\n| Hook runs too early | Unhook: `remove_action( $tag, $cb, $prio )` from mu-plugin |\n| Infinite redirect on license screen | Unhook the redirect callback; leave a notice |\n\n**Unhook from mu-plugin** (preferred):\n\n```php\n<?php\nadd_action('init', static function (): void {\n    remove_action('admin_init', 'offending_license_die', 1);\n}, 1);\n```\n\n**In-plugin guard** only when mu-plugin cannot reach the callback (closures):\n\n```php\nif (!defined('ABSPATH')) {\n    exit;\n}\n\/\/ Guard: do not take the site down if the license endpoint is unreachable.\nif (defined('SVS_WP_SKIP_LICENSE_REMOTE') && SVS_WP_SKIP_LICENSE_REMOTE) {\n    return;\n}\n```\n\nDefine the constant in `wp-config.php` or the mu-plugin \u2014 user-owned config.\n\n---\n\n## 4. Prove\n\n```bash\ncurl -sI \"https:\/\/<their-site>\/\" | head -n 5\ncurl -sI \"https:\/\/<their-site>\/wp-login.php\" | head -n 5\nwp plugin list --status=active --path=\"$WP_ROOT\"\n```\n\nReport: slug, file:line of the crash, what you unhooked\/guarded, HTTP status.\nDo not claim \u201clicense valid\u201d after a crash-guard.\n\n---\n\n## FORBIDDEN\n\n| Action | Why |\n|--------|-----|\n| Invent license keys \/ Freemius tokens | Piracy |\n| Hosts-file \/ fake license server | Fraud |\n| Redistribute a \u201cnulled\u201d zip | Copyright + malware |\n| Same ops on a third-party WP you do not admin | Unauthorized access |\n\n---\n\n## See Also\n\n- Memory: `owned-wordpress-plugin-ops.md`\n- Skill: `owned-infra-ops` (SSH \/ backup of `wp-content`)\n- Memory: `owned-server-backup.md`\n","use_cases":["Recover a WordPress site from a plugin-caused white screen or locked admin","Deactivate a plugin that is causing fatal errors or timeouts","Neutralize a plugin's license check to stabilize the site without using pirated keys","Implement a mu-plugin kill switch to deactivate a problematic plugin when wp-cli is unavailable"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/0x57-1\/start-vibing-stacks\/blob\/6e398b34c4dfe73ac8f809216b218856b8e02ff4\/stacks\/_shared\/skills\/owned-wordpress-plugin-ops\/SKILL.md","source_commit":"6e398b34c4dfe73ac8f809216b218856b8e02ff4","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:11:33.000000Z","updated_at":"2026-12-03T16:20:08.000000Z","seo_title":"WordPress Plugin Recovery and Stabilization","seo_description":"Recover a WordPress site by safely deactivating or neutralizing problematic plugins without using cracked or pirated licenses. Stabilize the site and provide diagnostic,","seo_keywords":["wordpress plugin recovery","wordpress plugin deactivation","wordpress site stabilization","wordpress plugin crash guard","wordpress license check bypass"]}}