Question
How do I remove the WP Toolkit plugin from the Must-Use plugins section of WordPress?
Answer
- Log in to your cPanel account.
- Access WordPress Management.
- Next to each domain, on the left side, select the drop-down to expand the menu.
- Select Plugins
- Select the trash can on the right side for "WP Toolkit plugin"
- When prompted, select Yes
- Access Terminal for your server as the
rootuser via SSH or by accessing your WHM interface and navigating to WHM / Server Configuration / Terminal in WHM. -
Get the instance list
# wp-toolkit --list
-
Remove the plugin.
Note: Please replace ID 132 with the instance ID of the WordPress installation from step 2
# wp-toolkit --wp-cli -instance-id 132 -- plugin delete wp-toolkit
-
Clear the cache
# wp-toolkit --clear-cache -instance-id 132
- Access your cPanel server
- Navigate to Security / Manage API Tokens in cPanel
- Enter an API Token Name.
- Set whether you want the token to expire or not.
- Click Create
- Copy the API token to a safe place.
- Navigate back to cPanel
- Navigate to Advanced / Terminal for cPanel
-
Get a list of IDs for your WP-Toolkit installation.
# wp-toolkit --list
-
Modify the curl command below with your cPanel user, API Token from step 6, website_ID from step 9, and set the correct hostname for your server.
CONFIG_TEXT: curl -sk -X POST -H 'Authorization: cpanel user:api-token' -H 'Content-Type: application/json' -d '{"confirm": true}' "https://hostname:2083/3rdparty/wpt/index.php/v1/installations/{WEBSITE_ID}/features/integration-plugin/remover"
- Access your WHM server as the
rootuser. - Navigate to Home / Development / Manage API Tokens.
- Select Generate Token.
-
Name your token.
Note: Be sure "WP Toolkit access to WP Toolkit wp-toolkit" is selected.
- Click Save once you've made your selection.
- Copy the token to a safe place.
- Access Terminal for your server as the
rootuser via SSH or by accessing your WHM interface and navigating to WHM / Server Configuration / Terminal in WHM. -
Get a list of IDs for your WP-Toolkit installation.
# wp-toolkit --list
-
Modify the curl command below with your API token from step 6, website_ID from step 8, and set the correct hostname for your server.
CONFIG_TEXT: curl -sk -X POST -H 'Authorization: whm root:api-token' -H 'Content-Type: application/json' -d '{"confirm": true}' "https://hostname:2087/cgi/wpt/index.php/v1/installations/{WEBSITE_ID}/features/integration-plugin/remover"
Additional Information
How to stop WP-Toolkit from adding "Must-Use" WP Toolkit plugin?
Comments
0 comments
Article is closed for comments.