Introduction
This article explains how to update the WordPress Toolkit “Vulnerability Found” notification settings in WHM. These notifications help administrators receive alerts when vulnerabilities are detected in WordPress installations managed through WordPress Toolkit.
Prerequisites
Before proceeding, ensure the following:
- You have root SSH access to the server.
- WHM/cPanel and WordPress Toolkit are installed on the server.
- You have terminal access to execute WHM API commands.
Implementation
Step 1: Access the Server via SSH
Log in to your server using SSH with the root user.
Step 2: Update the Notification Importance
Currently, WordPress Toolkit events are not available in the Contact Manager interface within WHM. Therefore, notification settings must be updated through the command line.
Run the following command:
whmapi1 set_application_contact_importance app='WPT' event='VulnerabilityFound' importance='$VALUE'
Replace $VALUE with the required notification level:
- Disabled
- Low
- Medium
- High
Example: Disable the Notification
To disable the “Vulnerability Found” notification, run:
whmapi1 set_application_contact_importance app='WPT' event='VulnerabilityFound' importance='Disabled'
Example: Set Notification to High
To receive high-priority alerts, run:
whmapi1 set_application_contact_importance app='WPT' event='VulnerabilityFound' importance='High'
Conclusion
By updating the WordPress Toolkit notification importance level through the command line, administrators can better manage vulnerability alerts according to their monitoring requirements.